Commit 79a15eb
fix: skip config loading for completion subcommands (#109)
Use cmd.Name() with parent traversal instead of cmd.Use to properly
detect completion subcommands like "completion bash". Previously,
only the leaf command name was checked, causing config loading to
fail when Chart.yaml doesn't exist.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent d69aa8d commit 79a15eb
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| |||
0 commit comments