From 0462930ecedd38002c70e8dccb351d7ee68b60c4 Mon Sep 17 00:00:00 2001 From: Kadin Sayani Date: Fri, 15 Nov 2024 13:40:04 -0700 Subject: [PATCH] lxc/completion: Don't hide default completion command The completion command is a useful tool that includes detailed instructions for setting up completions across shell environments. Most CLI applications don't hide this by default so it's quite intuitive for a user to locate/use this command. Furthermore, the LXD snap completions are only set up for Bash shells. Signed-off-by: Kadin Sayani --- lxc/main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lxc/main.go b/lxc/main.go index ee7e1a6350b8..edc09882a960 100644 --- a/lxc/main.go +++ b/lxc/main.go @@ -87,7 +87,6 @@ All of LXD's features can be driven through the various commands below. For help with any of those, simply call them with --help.`)) app.SilenceUsage = true app.SilenceErrors = true - app.CompletionOptions = cobra.CompletionOptions{HiddenDefaultCmd: true} // Global flags globalCmd := cmdGlobal{cmd: app, asker: cli.NewAsker(bufio.NewReader(os.Stdin), nil)}