Skip to content

Commit

Permalink
Make the admin command hidden, not each subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
aengelberg committed Oct 23, 2020
1 parent cf5ec1c commit 7729f0c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/admin.go
Expand Up @@ -22,8 +22,7 @@ func newAdminCommand(config *settings.Config) *cobra.Command {
RunE: func(_ *cobra.Command, _ []string) error {
return importOrb(orbOpts)
},
Args: cobra.MinimumNArgs(1),
Hidden: true,
Args: cobra.MinimumNArgs(1),
}
importOrbCommand.Flags().BoolVar(&orbOpts.integrationTesting, "integration-testing", false, "Enable test mode to bypass interactive UI.")

Expand All @@ -41,7 +40,6 @@ func newAdminCommand(config *settings.Config) *cobra.Command {
},
Args: cobra.ExactArgs(2),
Annotations: make(map[string]string),
Hidden: true,
}
renameCommand.Flags().BoolVar(&nsOpts.noPrompt, "no-prompt", false, "Disable prompt to bypass interactive UI.")

Expand All @@ -67,7 +65,6 @@ Example:
},
Args: cobra.ExactArgs(1),
Annotations: make(map[string]string),
Hidden: true,
}

deleteAliasCommand.Annotations["<name>"] = "The name of the alias to delete"
Expand All @@ -86,6 +83,7 @@ Example:
// As of writing this comment, that is only for daily update checks.
return rootCmdPreRun(rootOptions)
},
Hidden: true,
}

adminCommand.AddCommand(importOrbCommand)
Expand Down

0 comments on commit 7729f0c

Please sign in to comment.