main: hide completion command
The `completion` command doesn't need to be quite so discoverable. Let's have only actual subcommands listed and mention this in (future) documentation instead. Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
parent
c99aa91265
commit
5057bd4791
1 changed files with 3 additions and 0 deletions
|
|
@ -389,6 +389,9 @@ Image-builder builds operating system images for a range of predefined
|
||||||
operating systems like Fedora, CentOS and RHEL with easy customizations support.`,
|
operating systems like Fedora, CentOS and RHEL with easy customizations support.`,
|
||||||
SilenceErrors: true,
|
SilenceErrors: true,
|
||||||
Version: BuildVersion,
|
Version: BuildVersion,
|
||||||
|
CompletionOptions: cobra.CompletionOptions{
|
||||||
|
HiddenDefaultCmd: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
rootCmd.PersistentFlags().String("data-dir", "", `Override the default data directory for e.g. custom repositories/*.json data`)
|
rootCmd.PersistentFlags().String("data-dir", "", `Override the default data directory for e.g. custom repositories/*.json data`)
|
||||||
rootCmd.PersistentFlags().StringArray("extra-repo", nil, `Add an extra repository during build (will *not* be gpg checked and not be part of the final image)`)
|
rootCmd.PersistentFlags().StringArray("extra-repo", nil, `Add an extra repository during build (will *not* be gpg checked and not be part of the final image)`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue