1
0
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:
openshift-merge-bot[bot] 2025-04-16 16:18:31 +00:00 committed by GitHub
commit 352eda35bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")