Merge pull request #1363 from vrothberg/completion

disable `completion` command
This commit is contained in:
Miloslav Trmač 2021-07-08 12:50:18 +02:00 committed by GitHub
commit 07c81c7777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,11 @@ func main() {
return
}
rootCmd, _ := createApp()
// Currently, skopeo uses manually written completions. Cobra allows
// for auto-generating completions for various shells. Podman is
// already making us of that. If Skopeo decides to follow, please
// remove the line below (and hide the `completion` command).
rootCmd.CompletionOptions.DisableDefaultCmd = true
if err := rootCmd.Execute(); err != nil {
logrus.Fatal(err)
}