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
|
|
@ -32,10 +32,11 @@ import (
|
|||
|
||||
// delCmd represents the set command
|
||||
var delCmd = &cobra.Command{
|
||||
Use: "del KEY[@DB]",
|
||||
Short: "Delete a key. Optionally specify a db.",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: del,
|
||||
Use: "del KEY[@DB]",
|
||||
Short: "Delete a key. Optionally specify a db.",
|
||||
Aliases: []string{"delete", "rm", "remove"},
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: del,
|
||||
}
|
||||
|
||||
func del(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue