wip
This commit is contained in:
parent
86283b0a91
commit
9162a41505
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
|
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
@ -28,13 +27,8 @@ to quickly create a Cobra application.`,
|
|||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(injectorCmd)
|
rootCmd.AddCommand(injectorCmd)
|
||||||
|
|
||||||
// Here you will define your flags and configuration settings.
|
injectorCmd.Flags().String("http-addr", ":9443", "nats.io broker host address")
|
||||||
|
injectorCmd.Flags().String("nats-host", "nats", "nats.io broker host address")
|
||||||
// Cobra supports Persistent Flags which will work for this command
|
injectorCmd.Flags().Int("nats-port", 4222, "nats.io broker tcp port")
|
||||||
// and all subcommands, e.g.:
|
injectorCmd.Flags().String("log-level", "debug", "log level trace")
|
||||||
// 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")
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user