2024-10-03 16:14:53 +02:00
|
|
|
/*
|
|
|
|
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
|
|
|
|
*/
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2024-10-03 16:38:57 +02:00
|
|
|
"git.espin.casa/albert/cml04-falcon-system/injector/app"
|
2024-10-03 16:14:53 +02:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// injectorCmd represents the injector command
|
|
|
|
var injectorCmd = &cobra.Command{
|
|
|
|
Use: "injector",
|
2024-10-03 16:38:57 +02:00
|
|
|
Short: "Injector",
|
|
|
|
Long: "Injector",
|
|
|
|
Run: app.Run,
|
2024-10-03 16:14:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(injectorCmd)
|
|
|
|
|
2024-10-03 16:24:21 +02:00
|
|
|
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")
|
2024-10-03 16:14:53 +02:00
|
|
|
}
|