- Before:
- default (no flags): no script, no command output
- -v: full script, no command output
- -vv: full script, shows command output up to and including failing line
- After:
- default (no flags): no script, show only failing line in command output
- -v: full script, highlight failing line in script, shows command output up to and including failing line, highlight failing output
- -vv: alias to -v (preserve backwards compatibility)
Background discussion: http://lists.llvm.org/pipermail/llvm-dev/2019-September/135098.html
This patch doesn't follow the exact suggestion in that thread, but I think it's pretty close and arguably better.
I do have a couple of questions:
- Is it ok to rename echo_all_commands to runWithCommandOutput? I think the latter represents the meaning better (since the behavior is no longer controlled by the --echo-all-commands flag), but that might break compatibility for out-of-tree users (should be a small fix though).
- Should TerminalController be split out into a different file?
I don't feel strongly about the colors/styling. Happy to change it if there are common color schemes where it would become unreadable.
snake_case