CLI 树
ChatLink 使用共享的 chatstyle.add_tree_option() 从真实注册的 Click command surface 生成命令树:
chatlink --tree显示参数签名,适合接口审查。chatlink --tree-brief保留同一组节点和说明,但省略参数签名。
当前 CLI 是 root-only,没有业务命令参数,因此完整和简洁视图相同。这个页面不能手写未来命令。
完整命令树
chatlink
├── --help # Show this message and exit.
├── --version # Show the version and exit.
├── --tree # Print the registered CLI tree and exit.
└── --tree-brief # Print the registered CLI tree without parameter signatures and exit.
简洁命令树
chatlink
├── --help # Show this message and exit.
├── --version # Show the version and exit.
├── --tree # Print the registered CLI tree and exit.
└── --tree-brief # Print the registered CLI tree without parameter signatures and exit.
当前状态
| 入口 | 状态 | 说明 |
|---|---|---|
chatlink --help |
已实现 | 显示根命令帮助。 |
chatlink --version |
已实现 | 显示已安装包版本。 |
chatlink --tree |
已实现 | 显示包含参数签名的真实注册树。 |
chatlink --tree-brief |
已实现 | 显示省略参数签名的同一注册树。 |
chatlink hello |
已移除 | 模板 scaffold 命令,不作为公开兼容面保留。 |
| Link utility 子命令 | 尚未实现 | 未来有真实 link utilities 能力后再加入 CLI。 |
更新规则
新增真实命令时,先更新 Click 注册面和测试,再运行 chatlink --tree 与 chatlink --tree-brief 回填 README 与本页。