Skip to content

Releases: ArcletProject/Alconna

Alconna 1.7.39

12 Dec 06:09
Compare
Choose a tag to compare

What's Changed

  • 🐛 fix Formatter resolve the node incorrectly
  • ⬆️ Bump actions/setup-python from 4 to 5 by @dependabot in #83

Full Changelog: v1.7.38...v1.7.39

Alconna 1.7.38

23 Nov 10:56
Compare
Choose a tag to compare

修复

  • 修复 command_manager.dump
  • 修复 CompSession 在执行过程中受到其他命令解析干扰的问题

Full Changelog: v1.7.37...v1.7.38

Alconna 1.7.37

19 Nov 05:28
Compare
Choose a tag to compare

改进

  • Alconna.shortcut 可以用关键字参数传入 commandargs
  • 允许提供参数来额外处理 shortcut 的正则匹配结果:
     from arclet.alconna import Alconna, Args
    
     eat = Alconna("what2eat", Args["time", str])
     
     eat.shortcut(
         "(今天|[早中午晚][上饭餐午]|早上|夜宵|今晚)吃(?:什么|啥|点啥)(?P<help>帮助)?",
         arguments=["{0}", "{help}"],
         wrapper=lambda slot, content: "--help" if slot == "help" else content,
     )
     print(eat.parse("晚上吃什么"))

Full Changelog: v1.7.36...v1.7.37

Alconna 1.7.36

18 Nov 12:46
Compare
Choose a tag to compare

变更

  • 优化 completion 的换行策略

Full Changelog: v1.7.35...v1.7.36

Alconna 1.7.35

18 Nov 04:10
Compare
Choose a tag to compare

更改

为 completion 下 >>* 提供了自定义途径 (i18n)

Full Changelog: v1.7.34...v1.7.35

Alconna 1.7.34

14 Nov 11:59
Compare
Choose a tag to compare

修复

  • 修复 Option 与 Subcommand 模糊匹配的文本错误

Full Changelog: v1.7.33...v1.7.34

Alconna 2.0.0a2

11 Nov 10:33
Compare
Choose a tag to compare
Alconna 2.0.0a2 Pre-release
Pre-release

破坏性改动

  • 暂时移除命令缓存相关配置

改进

  • 内部逻辑调整,增加些许性能提升

修复

  • 修复 Empty 相关的默认值问题

Full Changelog: v1.7.33...v2.0.0a2

Alconna 1.7.33

30 Oct 06:34
Compare
Choose a tag to compare

修复

  • 修复补全会话下参数过多引起补全错误触发的问题

Full Changelog: v1.7.32...v1.7.33

Alconna 1.7.32

22 Oct 06:14
Compare
Choose a tag to compare

改进

  • 可以选择配置禁用哪些内置选项
  • 自定义的与内置选项名称有冲突的选项 (例如 --help) 在禁用内置选项后能正常解析

Full Changelog: v1.7.31...v1.7.32

Alconna 1.7.31

19 Oct 11:20
Compare
Choose a tag to compare

改进

  • 改进 CommandMeta
  • 改进命令头的显示方式

Full Changelog: v1.7.30...v1.7.31