docs(readme): 补充 Shell 自动补全使用说明(中英双语) #425
Loading…
Reference in New Issue
No description provided.
Delete Branch "Taoyouce/gitlink-cli:docs/readme-completion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
CLI 内置 cobra 的 completion 命令(bash/zsh/fish/PowerShell 四种),但 README.md / README.zh-CN.md 完全没有提及——这是提升日常使用效率的现成能力,用户无从发现。
变更
两个 README 的「全局参数」小节前新增「Shell 自动补全」小节:四种 shell 的即时启用命令 + 指向
completion <shell> --help的一次性安装说明。验证
source <(gitlink-cli completion bash)与completion zsh生成脚本均实测可用。纯文档变更,零代码风险。