Skip to content

Commit 53a7291

Browse files
committed
expose shell completion generation
`urfave-v2` supports automatically generating a shell completion stub[0] for use with their bash[1] and zsh[2] completion scripts. [0]: https://cli.urfave.org/v2/examples/bash-completions/ [1]: https://github.com/urfave/cli/blob/v2-maint/autocomplete/bash_autocomplete [2]: https://github.com/urfave/cli/blob/v2-maint/autocomplete/zsh_autocomplete
1 parent 4bde81d commit 53a7291

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/app.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func NewApp(params AppParams) (*cli.App, error) {
3838
EnableDebugLogsFlag,
3939
},
4040
Commands: enabledCommands,
41+
EnableBashCompletion: true,
4142
}
4243

4344
return app, nil

0 commit comments

Comments
 (0)