mirror of
https://github.com/containers/buildah.git
synced 2025-04-18 07:04:05 +03:00
Merge pull request #6128 from nalind/completion
cli: hide the `completion` command instead of disabling it outright
This commit is contained in:
commit
352eda35bc
@ -85,8 +85,8 @@ func init() {
|
||||
defaultContainerConfig.CheckCgroupsAndAdjustConfig()
|
||||
|
||||
cobra.OnInitialize(initConfig)
|
||||
// Disable the implicit `completion` command in cobra.
|
||||
rootCmd.CompletionOptions.DisableDefaultCmd = true
|
||||
// Hide the implicit `completion` command in cobra.
|
||||
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
||||
// rootCmd.TraverseChildren = true
|
||||
rootCmd.Version = fmt.Sprintf("%s (image-spec %s, runtime-spec %s)", define.Version, ispecs.Version, rspecs.Version)
|
||||
rootCmd.PersistentFlags().BoolVar(&globalFlagResults.Debug, "debug", false, "print debugging information")
|
||||
|
Loading…
x
Reference in New Issue
Block a user