Skip to content

Commit 031203c

Browse files
author
Sergey Mamadjanov
authored
feat: add fish completions (#49) (#50)
1 parent 8ed4fbc commit 031203c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/completion.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ var bashCompletionGenerators = map[string]func(out io.Writer, cmd *cobra.Command
2828
"zsh": func(out io.Writer, cmd *cobra.Command) error {
2929
return cmd.GenZshCompletion(out)
3030
},
31+
"fish": func(out io.Writer, cmd *cobra.Command) error {
32+
return cmd.GenFishCompletion(out, true)
33+
},
3134
}
3235

3336
var completionCmdHelp = `Output shell completion code for the specified shell (bash or zsh).

0 commit comments

Comments
 (0)