Skip to content

Commit 4b8a64a

Browse files
author
Jakob Külzer
committed
check flow now uses flag for project and reads env var
2 parents d21b42c + d9d411d commit 4b8a64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cmd/check/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func ConfigureCommand(app *kingpin.Application, ctx *azkaban.Context) {
2727
}
2828
cmd = app.Command("check", "")
2929
checkFlowCmd = cmd.Command("flow", "checks a flow").Action(s.checkFlow)
30-
project = checkFlowCmd.Arg("project", "Project").Required().String()
30+
project = checkFlowCmd.Flag("project", "Project").Envar("HARBORMASTER_PROJECT").Required().String()
3131
flow = checkFlowCmd.Arg("flow", "Flow").HintAction(s.suggestFlow).Required().String()
3232
checkCountFlag = checkFlowCmd.Flag("execution-count", "number of executions to check").Short('n').Default("20").Int()
3333
detailCountFlag = checkFlowCmd.Flag("detail-count", "number of execution details").Short('d').Default("5").Int()

0 commit comments

Comments
 (0)