Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

show only available out-formats

the json out-format is displayed only when statix is compiled
with

cargo bulid --all-features
# or
cargo build --features=json

Akshay 448e6f20 58e24a59

+2 -1
+2 -1
bin/src/config.rs
··· 50 50 unrestricted: bool, 51 51 52 52 /// Output format. 53 - /// Supported values: stderr, errfmt, json (on feature flag only) 53 + #[cfg_attr(feature = "json", doc = "Supported values: stderr, errfmt, json")] 54 + #[cfg_attr(not(feature = "json"), doc = "Supported values: stderr, errfmt")] 54 55 #[clap(short = 'o', long, default_value_t, parse(try_from_str))] 55 56 pub format: OutFormat, 56 57