fix panics

This commit is contained in:
Matej Kramny
2019-06-02 13:34:38 +08:00
parent 162d55b3f3
commit 80d424722b
4 changed files with 21 additions and 14 deletions

View File

@@ -1,5 +0,0 @@
package main
func main() {
Execute()
}

View File

@@ -24,9 +24,7 @@ var rootCmd = &cobra.Command{
},
}
// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
func main() {
if err := rootCmd.Execute(); err != nil {
panic(err)
}