Skip to content

Commit

Permalink
Properly parse always and never
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Dec 2, 2024
1 parent cdf4b75 commit a38548e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ func resolveRequestMode(cellMode string) *runnerv1.ResolveProgramRequest_Mode {
switch strings.ToLower(cellMode) {
case "auto":
mode = runnerv1.ResolveProgramRequest_MODE_UNSPECIFIED
case "1", "true", "yes":
case "1", "true", "yes", "always":
mode = runnerv1.ResolveProgramRequest_MODE_PROMPT_ALL
case "0", "false", "no":
case "0", "false", "no", "never":
mode = runnerv1.ResolveProgramRequest_MODE_SKIP_ALL
default:
mode = runnerv1.ResolveProgramRequest_MODE_UNSPECIFIED
Expand Down

0 comments on commit a38548e

Please sign in to comment.