We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6dec1 commit 86236b6Copy full SHA for 86236b6
command_setup.go
@@ -88,7 +88,7 @@ func (cmd *Command) setupDefaults(osArgs []string) {
88
cmd.SuggestCommandFunc = suggestCommand
89
}
90
91
- if isRoot {
+ if isRoot && cmd.EnableShellCompletion {
92
completionCommand := buildCompletionCommand(cmd.Name)
93
94
if cmd.ShellCompletionCommandName != "" {
0 commit comments