change: remove namespace

This commit is contained in:
debugtalk
2021-12-22 21:01:43 +08:00
parent 8e58e25e2b
commit c7d6426f51
4 changed files with 39 additions and 91 deletions

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)
}
}