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
|
|
@ -20,10 +20,11 @@ type dumpEntry struct {
|
|||
}
|
||||
|
||||
var dumpCmd = &cobra.Command{
|
||||
Use: "dump [DB]",
|
||||
Short: "Dump all key/value pairs as NDJSON",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: dump,
|
||||
Use: "dump [DB]",
|
||||
Short: "Dump all key/value pairs as NDJSON",
|
||||
Aliases: []string{"export"},
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: dump,
|
||||
}
|
||||
|
||||
func dump(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue