Skip to content

Releases: ArcletProject/Alconna

Alconna 1.8.15

11 Jun 07:52
Compare
Choose a tag to compare
  • shortcut 的 key 支持正则表达式对象 (re.Pattern[str])

Full Changelog: v1.8.14...v1.8.15

Alconna 1.8.14

02 Jun 06:26
Compare
Choose a tag to compare
  • 修复 shortcut 对非字符串参数的处理

Full Changelog: v1.8.13...v1.8.14

Alconna 1.8.13

21 May 10:48
Compare
Choose a tag to compare
  • AllParam 现在不会将剩余字符串参数进行分割

Full Changelog: v1.8.12...v1.8.13

Alconna 1.8.12

19 May 09:00
Compare
Choose a tag to compare

What's Changed

  • ⬆️ Bump tarina from 0.4.4 to 0.5.1
  • ⬆️ Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #87

Full Changelog: v1.8.11...v1.8.12

Alconna 1.8.11

26 Apr 16:33
Compare
Choose a tag to compare

改进

  • 快捷指令处理数据时会尝试把带分隔符的字符串用引号包裹

修复

  • 修复 Bracket Header 的正则表达式丢失问题

Full Changelog: v1.8.10...v1.8.11

Alconna 1.8.10

21 Apr 14:58
Compare
Choose a tag to compare

改进

  • 适配 NEPattern 0.7.0

Full Changelog: v1.8.9...v1.8.10

Alconna 1.8.9

18 Apr 06:52
Compare
Choose a tag to compare

修复

  • 修复传入命令首个元素非字符串时能错误触发快捷指令的问题

Full Changelog: v1.8.8...v1.8.9

Alconna 1.8.8

11 Apr 17:10
Compare
Choose a tag to compare

修复

修复子命令在自身名称解析失败时其结果被错误存储的问题

Full Changelog: v1.8.7...v1.8.8

Alconna 1.8.7

04 Apr 15:27
Compare
Choose a tag to compare

What's Changed

  • 头部解析逻辑拆分
  • 修复 manager 更新命令时未使用 Argv 的 cache 问题
  • ⬆️ Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #86

Full Changelog: v1.8.6...v1.8.7

Alconna 1.8.6

15 Mar 13:39
Compare
Choose a tag to compare

改进

  • 帮助信息现在会显示命令的快捷指令

新增

  • Alconna.shortcut 新增参数 humanized,用于指定快捷指令的可读性文本以供显示

    from arclet.alconna import Alconna, Args
    
    alc = Alconna("test", Args["foo", int])
    alc.shortcut("t(\d+)", command="test {0}", humanized="t[数字]")
  • CommandMeta 新增属性 hide_shortcut, 用于在帮助信息里隐藏命令的快捷指令

Full Changelog: v1.8.5...v1.8.6