package cmd import ( "github.com/bloom42/rz-go/v2/log" "github.com/bloom42/bitflow/worker" "github.com/spf13/cobra" ) func init() { rootCmd.AddCommand(workerCmd) } // run the scanner as a worker, waiting messages from remote sources var workerCmd = &cobra.Command{ Use: "worker", Short: "Run bitflow as a worker", Long: "Run bitflow as a worker waiting for messages from remote sources. Configuration is done with environment variable", Run: func(cmd *cobra.Command, args []string) { var w worker.Worker if err := w.Run(); err != nil { log.Fatal(err.Error()) } }, }