File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ func (cmd *Command) setupDefaults(osArgs []string) {
8888 cmd .SuggestCommandFunc = suggestCommand
8989 }
9090
91- if cmd . EnableShellCompletion || cmd . Root (). shellCompletion {
91+ if isRoot {
9292 completionCommand := buildCompletionCommand (cmd .Name )
9393
9494 if cmd .ShellCompletionCommandName != "" {
Original file line number Diff line number Diff line change 3030 return fmt .Sprintf (string (b ), appName ), err
3131 },
3232 "fish" : func (c * Command , appName string ) (string , error ) {
33- return c .ToFishCompletion ()
33+ return c .Root (). ToFishCompletion ()
3434 },
3535 "pwsh" : func (c * Command , appName string ) (string , error ) {
3636 b , err := autoCompleteFS .ReadFile ("autocomplete/powershell_autocomplete.ps1" )
You can’t perform that action at this time.
0 commit comments