|
|
@ -20,8 +20,12 @@ func NewRootCmd() (rootCmd *RootCmd) {
|
|
|
|
Short: "Start the server",
|
|
|
|
Short: "Start the server",
|
|
|
|
Long: `Start the server`,
|
|
|
|
Long: `Start the server`,
|
|
|
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
|
|
|
|
err := rootCmd.getConfFromCmdAndInit(cmd)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
log.InitFromConfig("newlog")
|
|
|
|
log.InitFromConfig("newlog")
|
|
|
|
return rootCmd.getConfFromCmdAndInit(cmd)
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rootCmd.Command = c
|
|
|
|
rootCmd.Command = c
|
|
|
|