예제 #1
0
파일: main.go 프로젝트: General-Beck/worker
func runWorker(c *cli.Context) {
	workerCLI := worker.NewCLI(c)
	canRun, err := workerCLI.Setup()
	if !canRun {
		if err != nil {
			os.Exit(exitAlarm)
		}
		return
	}
	workerCLI.Run()
}
예제 #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)
}