feat(cmds): adds common aliases for main commands

This commit is contained in:
Lewis Wynne 2025-11-19 12:41:45 +00:00
parent 885ef5ce4f
commit 28582bc0b2
5 changed files with 25 additions and 20 deletions

View file

@ -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 {