Skip to content

Commit

Permalink
chore(cobra): Add Cobra options to improve user experience
Browse files Browse the repository at this point in the history
Command execution log becomes much better.
  • Loading branch information
5ouma committed Jan 19, 2024
1 parent ed8414c commit f67c622
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ func New() *cmd {
},
loginItems: new(lib.LoginItems),
}
cmd.command.CompletionOptions.HiddenDefaultCmd = true
cmd.command.SetVersionTemplate("📑 {{.Use}} {{.Version}}\n")
cmd.command.SetErrPrefix("🚨")
cmd.command.AddCommand(
cmd.newSaveCmd(),
cmd.newLoadCmd(),
cmd.newSaveCmd(),
)
return cmd
}
Expand Down

0 comments on commit f67c622

Please sign in to comment.