Commit 3b5049f
fix(cli): fix completion guard to cover all completion subcommands
Use cmd.CommandPath() to match the full "kbc completion" subtree
instead of cmd.Name() == "completion", which only matched the parent
command itself. When running "kbc completion bash", cmd.Name() returns
"bash" (not "completion"), so the original guard failed to skip
the dep stack init for the actual shell-specific subcommands.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 64b6c9a commit 3b5049f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments