feat(cmds): adds common aliases for main commands
This commit is contained in:
parent
885ef5ce4f
commit
28582bc0b2
5 changed files with 25 additions and 20 deletions
|
|
@ -33,10 +33,11 @@ import (
|
|||
|
||||
// delDbCmd represents the set command
|
||||
var delDbCmd = &cobra.Command{
|
||||
Use: "delete-db DB",
|
||||
Short: "Delete a database.",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: delDb,
|
||||
Use: "delete-db DB",
|
||||
Short: "Delete a database.",
|
||||
Aliases: []string{"del-db", "rm-db", "remove-db"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: delDb,
|
||||
}
|
||||
|
||||
func delDb(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue