From 6c4698df58dd64939346e3cf0c71c2066eda7547 Mon Sep 17 00:00:00 2001 From: Taoyouce Date: Sun, 5 Jul 2026 17:36:19 +0800 Subject: [PATCH 1/6] test create --- tmp/devin-test.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 tmp/devin-test.md diff --git a/tmp/devin-test.md b/tmp/devin-test.md new file mode 100644 index 0000000..00bcb6e --- /dev/null +++ b/tmp/devin-test.md @@ -0,0 +1 @@ +# test \ No newline at end of file From 3e93a6b5d3758b8539987cf70db87453bb4435bc Mon Sep 17 00:00:00 2001 From: Taoyouce Date: Sun, 5 Jul 2026 17:37:29 +0800 Subject: [PATCH 2/6] update tmp/devin-test.md --- tmp/devin-test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmp/devin-test.md b/tmp/devin-test.md index 00bcb6e..fbf5e77 100644 --- a/tmp/devin-test.md +++ b/tmp/devin-test.md @@ -1 +1 @@ -# test \ No newline at end of file +# updated v2 \ No newline at end of file From c09645da6296c4da95e24233ffddfdd5b1f0f028 Mon Sep 17 00:00:00 2001 From: Taoyouce Date: Sun, 5 Jul 2026 17:38:16 +0800 Subject: [PATCH 3/6] delete tmp/devin-test.md --- tmp/devin-test.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 tmp/devin-test.md diff --git a/tmp/devin-test.md b/tmp/devin-test.md deleted file mode 100644 index fbf5e77..0000000 --- a/tmp/devin-test.md +++ /dev/null @@ -1 +0,0 @@ -# updated v2 \ No newline at end of file From bbc8a412ee5fbf43f16a20259314271813bb2e45 Mon Sep 17 00:00:00 2001 From: Taoyouce Date: Wed, 8 Jul 2026 22:47:20 +0800 Subject: [PATCH 4/6] test: batch create two files --- batch-demo/a.txt | 1 + batch-demo/b.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 batch-demo/a.txt create mode 100644 batch-demo/b.txt diff --git a/batch-demo/a.txt b/batch-demo/a.txt new file mode 100644 index 0000000..7ee209f --- /dev/null +++ b/batch-demo/a.txt @@ -0,0 +1 @@ +file a \ No newline at end of file diff --git a/batch-demo/b.txt b/batch-demo/b.txt new file mode 100644 index 0000000..8d776cf --- /dev/null +++ b/batch-demo/b.txt @@ -0,0 +1 @@ +file b \ No newline at end of file From 604303e95339d7e581f324a27a11029655ce1d95 Mon Sep 17 00:00:00 2001 From: Taoyouce Date: Wed, 8 Jul 2026 22:48:03 +0800 Subject: [PATCH 5/6] test: batch delete demo files --- batch-demo/a.txt | 1 - batch-demo/b.txt | 1 - 2 files changed, 2 deletions(-) delete mode 100644 batch-demo/a.txt delete mode 100644 batch-demo/b.txt diff --git a/batch-demo/a.txt b/batch-demo/a.txt deleted file mode 100644 index 7ee209f..0000000 --- a/batch-demo/a.txt +++ /dev/null @@ -1 +0,0 @@ -file a \ No newline at end of file diff --git a/batch-demo/b.txt b/batch-demo/b.txt deleted file mode 100644 index 8d776cf..0000000 --- a/batch-demo/b.txt +++ /dev/null @@ -1 +0,0 @@ -file b \ No newline at end of file From d55e576fc86c41d012aa2f7d93cfd22bbb734727 Mon Sep 17 00:00:00 2001 From: maidamaliziasimnw Date: Fri, 10 Jul 2026 18:59:04 +0000 Subject: [PATCH 6/6] =?UTF-8?q?docs(readme):=20=E8=A1=A5=E5=85=85=20Shell?= =?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E8=A1=A5=E5=85=A8=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=88bash/zsh/fish/PowerShell=EF=BC=8C?= =?UTF-8?q?=E4=B8=AD=E8=8B=B1=E5=8F=8C=E8=AF=AD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- README.md | 20 ++++++++++++++++++++ README.zh-CN.md | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/README.md b/README.md index e5e4318..07fc871 100644 --- a/README.md +++ b/README.md @@ -697,6 +697,26 @@ Get-Content issue.json | gitlink-cli api POST /Gitlink/forgeplus/issues --body-s gitlink-cli api GET /Gitlink/forgeplus/commits --query 'page=1&limit=5' ``` +### Shell Completion + +`gitlink-cli` ships with built-in shell completion (bash / zsh / fish / PowerShell): + +```bash +# Bash (add to ~/.bashrc) +source <(gitlink-cli completion bash) + +# Zsh (add to ~/.zshrc) +source <(gitlink-cli completion zsh) + +# Fish +gitlink-cli completion fish | source + +# PowerShell +gitlink-cli completion powershell | Out-String | Invoke-Expression +``` + +Run `gitlink-cli completion --help` for install-once instructions per shell. + ## Global Parameters | Parameter | Description | Example | diff --git a/README.zh-CN.md b/README.zh-CN.md index 6a8879d..3839742 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -571,6 +571,26 @@ Get-Content issue.json | gitlink-cli api POST /Gitlink/forgeplus/issues --body-s gitlink-cli api GET /Gitlink/forgeplus/commits --query 'page=1&limit=5' ``` +### Shell 自动补全 + +`gitlink-cli` 内置 bash / zsh / fish / PowerShell 补全: + +```bash +# Bash(加入 ~/.bashrc) +source <(gitlink-cli completion bash) + +# Zsh(加入 ~/.zshrc) +source <(gitlink-cli completion zsh) + +# Fish +gitlink-cli completion fish | source + +# PowerShell +gitlink-cli completion powershell | Out-String | Invoke-Expression +``` + +各 shell 的一次性安装方式见 `gitlink-cli completion --help`。 + ## 全局参数 | 参数 | 说明 | 示例 |