Commit 64b6c9a
feat(cli): add shell completion support (PSGO-200)
Enable Cobra's built-in shell completion for bash, zsh, fish, and
PowerShell. The command is hidden from `kbc --help` (HiddenDefaultCmd)
but accessible via `kbc completion <shell>`.
Skip the full dependency stack initialization (filesystem, env loading,
HTTP version check) for completion commands, as every TAB press invokes
`__complete` and the heavy init causes side effects and latency.
Closes #2544
Linear: PSGO-200
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f66edbf commit 64b6c9a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| |||
0 commit comments