func runWorker(c *cli.Context) { workerCLI := worker.NewCLI(c) canRun, err := workerCLI.Setup() if !canRun { if err != nil { os.Exit(exitAlarm) } return } workerCLI.Run() }
func echoConfig(c *cli.Context) { workerCLI := worker.NewCLI(c) workerCLI.Configure() config.WriteEnvConfig(workerCLI.Config, os.Stdout) backend.WriteProviderEnvConfig(workerCLI.Config.ProviderName, os.Stdout) }