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

@ -14,10 +14,11 @@ import (
)
var restoreCmd = &cobra.Command{
Use: "restore [DB]",
Short: "Restore key/value pairs from an NDJSON dump",
Args: cobra.MaximumNArgs(1),
RunE: restore,
Use: "restore [DB]",
Short: "Restore key/value pairs from an NDJSON dump",
Aliases: []string{"import"},
Args: cobra.MaximumNArgs(1),
RunE: restore,
}
func restore(cmd *cobra.Command, args []string) error {