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