docs(readme): 补充 Shell 自动补全使用说明(中英双语) #425

Merged
wbtiger merged 6 commits from Taoyouce/gitlink-cli:docs/readme-completion into master 2026-07-14 20:34:26 +08:00
Contributor

背景

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 生成脚本均实测可用。纯文档变更,零代码风险。

## 背景 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` 生成脚本均实测可用。纯文档变更,零代码风险。
Taoyouce added 6 commits 2026-07-11 02:58:20 +08:00
wbtiger merged commit a9d9a535c7 into master 2026-07-14 20:34:26 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#425
No description provided.