Compare commits
No commits in common. "5d14b50531a7172fcb22b947eb9f428e4da0e664" and "b861469319ac962394d63b40f8ac97488c157e1a" have entirely different histories.
5d14b50531
...
b861469319
2 changed files with 6 additions and 10 deletions
|
@ -45,10 +45,10 @@ pub(super) async fn format_status(
|
||||||
Ok(format!(
|
Ok(format!(
|
||||||
"{}{}",
|
"{}{}",
|
||||||
ancestor,
|
ancestor,
|
||||||
if thread.is_empty() {
|
if !thread.is_empty() {
|
||||||
String::default()
|
|
||||||
} else {
|
|
||||||
format!("\n{}", thread)
|
format!("\n{}", thread)
|
||||||
|
} else {
|
||||||
|
String::default()
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -35,8 +35,8 @@ struct Config {
|
||||||
output_dir: Option<String>,
|
output_dir: Option<String>,
|
||||||
#[arg(required = true)]
|
#[arg(required = true)]
|
||||||
date: String,
|
date: String,
|
||||||
#[arg(short, long, action = clap::ArgAction::Count)]
|
#[arg(short, long)]
|
||||||
verbose: u8,
|
verbose: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
|
@ -49,11 +49,7 @@ async fn main() -> Result<()> {
|
||||||
output_dir,
|
output_dir,
|
||||||
} = Config::parse();
|
} = Config::parse();
|
||||||
|
|
||||||
let level = match verbose {
|
let level = if verbose { "debug" } else { "off" };
|
||||||
0 => "off",
|
|
||||||
1 => "debug",
|
|
||||||
_ => "trace",
|
|
||||||
};
|
|
||||||
env::set_var("RUST_LOG", format!("{}={}", module_path!(), level));
|
env::set_var("RUST_LOG", format!("{}={}", module_path!(), level));
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue