feat(cmd): SilenceUsage all but root
This commit is contained in:
parent
f6f1376d1a
commit
06e09df829
5 changed files with 30 additions and 25 deletions
11
cmd/list.go
11
cmd/list.go
|
|
@ -31,11 +31,12 @@ import (
|
|||
)
|
||||
|
||||
var listCmd = &cobra.Command{
|
||||
Use: "list [DB]",
|
||||
Short: "List the contents of a db.",
|
||||
Aliases: []string{"ls"},
|
||||
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,
|
||||
SilenceUsage: true,
|
||||
}
|
||||
|
||||
func list(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue