mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-05 09:36:00 +08:00
test cobra
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ func main() {
|
||||
rootCmd := cmd.NewRootCmd()
|
||||
rootCmd.AddPortFlag()
|
||||
rootCmd.AddRunE(run)
|
||||
if err := rootCmd.Command.Execute(); err != nil {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user