package main import ( "context" "fmt" "os" ) const usage = `barerepo-runner [--labels a,b] [--server url] Attaches this machine to a barerepo as a build runner. It long-polls outward, so it needs no inbound port and no port forwarding. The token comes from the add runner page on your barerepo. The server is remembered after the first attach, so you only pass it once. ` func main() { args := os.Args[1:] if len(args) == 0 || args[0] == "help" || args[0] == "-h" || args[0] == "--help" { fmt.Print(usage) return } if err := cmdRunner(context.Background(), args); err != nil { fmt.Fprintln(os.Stderr, "barerepo-runner: "+err.Error()) os.Exit(1) } }