|
|
@ -30,7 +30,7 @@ func main() {
|
|
|
|
startCmd.Flags().IntP(constant.FlagPort, "p", 0, "Port to listen on")
|
|
|
|
startCmd.Flags().IntP(constant.FlagPort, "p", 0, "Port to listen on")
|
|
|
|
startCmd.Flags().StringP(constant.FlagConf, "c", "", "Path to config file folder")
|
|
|
|
startCmd.Flags().StringP(constant.FlagConf, "c", "", "Path to config file folder")
|
|
|
|
rootCmd := cmd.NewRootCmd()
|
|
|
|
rootCmd := cmd.NewRootCmd()
|
|
|
|
cobra.Command(rootCmd).AddCommand(startCmd)
|
|
|
|
rootCmd.Command.AddCommand(startCmd)
|
|
|
|
if err := startCmd.Execute(); err != nil {
|
|
|
|
if err := startCmd.Execute(); err != nil {
|
|
|
|
fmt.Println(err)
|
|
|
|
fmt.Println(err)
|
|
|
|
os.Exit(1)
|
|
|
|
os.Exit(1)
|
|
|
|