change: remove namespace

This commit is contained in:
debugtalk
2021-12-22 21:04:20 +08:00
parent a36232b734
commit 745a29a379
4 changed files with 39 additions and 91 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package cmd
import (
"fmt"
"os"
"strings"
@@ -42,7 +41,7 @@ func Execute() {
RootCmd.PersistentFlags().BoolVar(&logJSON, "log-json", false, "set log to json format")
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
log.Error().Err(err).Msg("Failed to execute root command")
os.Exit(1)
}
}