Suppress help on error (#46)
This commit is contained in:
@@ -19,9 +19,11 @@ var date string
|
||||
func Execute() {
|
||||
// cobra.OnInitialize(initConfig)
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "speedrun",
|
||||
Short: "Cloud first command execution",
|
||||
Version: fmt.Sprintf("%s, commit: %s, date: %s", version, commit, date),
|
||||
Use: "speedrun",
|
||||
Short: "Cloud first command execution",
|
||||
Version: fmt.Sprintf("%s, commit: %s, date: %s", version, commit, date),
|
||||
SilenceUsage: true,
|
||||
SilenceErrors: true,
|
||||
}
|
||||
|
||||
rootCmd.AddCommand(initCmd)
|
||||
|
||||
Reference in New Issue
Block a user