feat(cmd): SilenceUsage all but root
This commit is contained in:
parent
f6f1376d1a
commit
06e09df829
5 changed files with 30 additions and 25 deletions
|
|
@ -33,11 +33,12 @@ import (
|
|||
|
||||
// delDbCmd represents the set command
|
||||
var delDbCmd = &cobra.Command{
|
||||
Use: "del-db DB",
|
||||
Short: "Delete a database.",
|
||||
Aliases: []string{"delete-db", "rm-db", "remove-db"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: delDb,
|
||||
Use: "del-db DB",
|
||||
Short: "Delete a database.",
|
||||
Aliases: []string{"delete-db", "rm-db", "remove-db"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: delDb,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
func delDb(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue