From edbed627bf4d5b456b4e2678829041aec7a3241a Mon Sep 17 00:00:00 2001 From: jkachmar Date: Tue, 6 May 2025 11:45:36 -0400 Subject: [PATCH] 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 --- app/app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/app.go b/app/app.go index 57a9b36f..96acf94d 100644 --- a/app/app.go +++ b/app/app.go @@ -28,6 +28,7 @@ func NewApp(params AppParams) (*cli.App, error) { EnableDebugLogsFlag, }, Commands: params.Commands, + EnableBashCompletion: true, } return app, nil