diff options
Diffstat (limited to 'cmd/krino/sort.go')
| -rw-r--r-- | cmd/krino/sort.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/krino/sort.go b/cmd/krino/sort.go index 5e52f84..901b19e 100644 --- a/cmd/krino/sort.go +++ b/cmd/krino/sort.go @@ -270,7 +270,9 @@ func cmdSort(g *globals, names []string, stdout, stderr io.Writer) int { } fmt.Fprintf(stderr, "krino: %s: %v\n", d.Name, aerr) exit = 1 - return false + // [w] stops krino whether or not its apply succeeded (review + // cli F3): no later directory is planned or asked about. + return action == 'w' } fmt.Fprintln(stdout, withNotReviewed(outcome(p, res.Applied, res.Failed, res.Declined), notReviewed)) // Ruling 1: only an actual step failure makes the run exit 1 |
