feat(cmd): SilenceUsage all but root
This commit is contained in:
parent
f6f1376d1a
commit
06e09df829
5 changed files with 30 additions and 25 deletions
|
|
@ -14,11 +14,12 @@ import (
|
|||
)
|
||||
|
||||
var restoreCmd = &cobra.Command{
|
||||
Use: "restore [DB]",
|
||||
Short: "Restore key/value pairs from an NDJSON dump",
|
||||
Aliases: []string{"import"},
|
||||
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,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
func restore(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue