Suppress help on error (#46)
This commit is contained in:
1 parent
841b0d9c5b
commit
226ee04151
2 files changed
+6
-4
No files matched your search
+5
-3
@@ -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