mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-10 05:50:02 +00:00
Migrate CI and builds to Just, add "full" builds (#660)
This commit is contained in:
parent
305bf8123d
commit
aea9df602c
30 changed files with 717 additions and 463 deletions
|
@ -1,4 +1,5 @@
|
|||
use std::{
|
||||
env,
|
||||
ffi::OsString,
|
||||
fmt,
|
||||
num::{NonZeroU64, ParseIntError},
|
||||
|
@ -225,13 +226,8 @@ pub struct Args {
|
|||
///
|
||||
/// Set to `off` to disable logging completely, this will also
|
||||
/// disable output from `cargo-install`.
|
||||
#[clap(
|
||||
help_heading = "Meta",
|
||||
long,
|
||||
default_value = "info",
|
||||
value_name = "LEVEL"
|
||||
)]
|
||||
pub log_level: LevelFilter,
|
||||
#[clap(help_heading = "Meta", long, value_name = "LEVEL")]
|
||||
pub log_level: Option<LevelFilter>,
|
||||
|
||||
/// Equivalent to setting `log_level` to `off`.
|
||||
///
|
||||
|
@ -331,8 +327,16 @@ pub fn parse() -> Args {
|
|||
|
||||
// Load options
|
||||
let mut opts = Args::parse_from(args);
|
||||
if opts.quiet {
|
||||
opts.log_level = LevelFilter::Off;
|
||||
|
||||
if let (true, Some(log)) = (
|
||||
opts.log_level.is_none(),
|
||||
env::var("BINSTALL_LOG_LEVEL")
|
||||
.ok()
|
||||
.and_then(|s| s.parse().ok()),
|
||||
) {
|
||||
opts.log_level = Some(log);
|
||||
} else if opts.quiet {
|
||||
opts.log_level = Some(LevelFilter::Off);
|
||||
}
|
||||
|
||||
// Ensure no conflict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue