Skip to content
Myr

Keep output colorized for 'full' and 'color' style

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #332

authored by sharkdp · committed by David Peter · parent 8973778 · Browse files · 2 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:src/main.rs+2 added-1 removed
157 unmodified lines
158 match options.output_style {159 OutputStyleOption::Basic | OutputStyleOption::NoColor => {160 colored::control::set_override(false)161 }162 _ => {}162 OutputStyleOption::Full | OutputStyleOption::Color => colored::control::set_override(true),163 OutputStyleOption::Disabled => {}164 };165166 options.shell = matches167 .value_of("shell")
154 unmodified lines
modified:CHANGELOG.md+3 added
18 unmodified lines
19- When parameters are used with `--parameter-list` or `--parameter-scan`, the JSON export format now contains a dictionary `parameters` instead of a single key `parameter`. See #253, #318.20- The `plot_parametrized.py` script now infers the parameter name, and its `--parameter-name` argument has been deprecated. See #253, #318.2122## Bugfixes2324- Keep output colorized when the output is not interactive and `--style=full` or `--style=color` is used.2526## Other27## Packaging2829# v1.10.0
206 unmodified lines