Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansi codes got outputted even when redirecting to file #211

Closed
crlf0710 opened this issue Jun 20, 2020 · 0 comments · Fixed by #217
Closed

Ansi codes got outputted even when redirecting to file #211

crlf0710 opened this issue Jun 20, 2020 · 0 comments · Fixed by #217
Labels
bug Something isn't working

Comments

@crlf0710
Copy link

I'm trying out this cargo-deny tool and it seems quite neat. However the report is very long for large projects (i'm running it on rustc itself)
I'm executing
cargo deny check all 2> a.log
It runs successfully, but the log file has many ansi control code. I think it should be automatically turned off.

Running Environment: I'm running cargo-deny on windows 10, it is build with rustc 1.43 stable.

@crlf0710 crlf0710 added the bug Something isn't working label Jun 20, 2020
Jake-Shadle added a commit that referenced this issue Jun 23, 2020
Added `--color` which takes the options `auto`, `always`, or `never` to turn on or off coloring for all output.

Added `--format` which takes the options `human` or `json`. The Json option writes each distinct output as a single Json object.

Resolves: #137
Resolves: #211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant