mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-10-02 19:53:27 +00:00
colors: respect NO_COLOR spec
Microfetch will now respect the NO_COLOR environment variable if it has been passed to the program. The performance overhead of this operation is almost none. In addition, the main function has been updated to lock stdout.
This commit is contained in:
parent
1b0d15a24f
commit
065216af7c
5 changed files with 99 additions and 42 deletions
|
@ -14,6 +14,7 @@ path = "src/main.rs"
|
|||
[dependencies]
|
||||
nix = { version = "0.29", features = ["fs", "hostname", "feature"] }
|
||||
color-eyre = { version = "0.6", default-features = false }
|
||||
lazy_static = "1.5.0"
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.5"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue