From 53a7291d5e258ebb762bad0e1d229d2bdcfec012 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 a9c2dae9..23d1527a 100644 --- a/app/app.go +++ b/app/app.go @@ -38,6 +38,7 @@ func NewApp(params AppParams) (*cli.App, error) { EnableDebugLogsFlag, }, Commands: enabledCommands, + EnableBashCompletion: true, } return app, nil