LukeMathWalker / cargo-px

A cargo subcommand that extends cargo's capabilities when it comes to code generation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Console output: match `cargo`'s style and behaviour

LukeMathWalker opened this issue · comments

As a rule of thumb, cargo-px doesn't want to "hide" the output coming from cargo commands—it should make it easier for users to understand what is being done (and it makes the tool feel more responsive if you can see what it is busy doing).

At the moment though, the visual style of cargo's output is quite different from the visual style of cargo-px's output (based on tracing-subscriber::fmt).
I'd like to fix that: cargo-px's output should "blend in" with cargo's output in terms of colors and style.

We should detect when --verbose and --quiet flags are passed to commands proxied by cargo-px itself and behave accordingly (i.e. no intermediate output when --quiet is specified, just like in cargo).