forego icon indicating copy to clipboard operation
forego copied to clipboard

Add support for explicit exit status, suppressing color output

Open bww opened this issue 5 years ago • 0 comments

Report error exit status

Adds support for supplying an explicit exit status that will be used if any of the managed processes exit with non-zero status. This is useful to report the fact that a process crashed to whatever process invoked forego.

This functionality is enabled by supplying the newly-defined -s flag with the desired exit status.

Suppress color

Colored output can optionally be suppressed by providing the -n flag. This can be useful in situations where ANSI escape codes are not correctly interpreted and result in garbage being printed to stdout.

Misc

Cleaned up a couple tests that used format specifiers in the non-formatting t.Fatal method.

bww avatar Apr 03 '19 22:04 bww