This commit is contained in:
Albert Espín 2024-10-03 16:24:21 +02:00
parent 86283b0a91
commit 9162a41505

View File

@ -1,6 +1,5 @@
/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
*/
package cmd
@ -28,13 +27,8 @@ to quickly create a Cobra application.`,
func init() {
rootCmd.AddCommand(injectorCmd)
// Here you will define your flags and configuration settings.
// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// injectorCmd.PersistentFlags().String("foo", "", "A help for foo")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// injectorCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
injectorCmd.Flags().String("http-addr", ":9443", "nats.io broker host address")
injectorCmd.Flags().String("nats-host", "nats", "nats.io broker host address")
injectorCmd.Flags().Int("nats-port", 4222, "nats.io broker tcp port")
injectorCmd.Flags().String("log-level", "debug", "log level trace")
}