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
|
|
@ -31,10 +31,11 @@ import (
|
|||
)
|
||||
|
||||
var listCmd = &cobra.Command{
|
||||
Use: "list [DB]",
|
||||
Short: "List the contents of a db.",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: list,
|
||||
Use: "list [DB]",
|
||||
Short: "List the contents of a db.",
|
||||
Aliases: []string{"ls"},
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: list,
|
||||
}
|
||||
|
||||
func list(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue