added build vars

This commit is contained in:
2022-08-12 00:54:22 +02:00
parent 5da6b35ead
commit 864c7a7dac
5 changed files with 83 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ use std::{
};
use config::CuddleConfig;
use tracing::Level;
mod actions;
mod cli;
@@ -23,6 +24,7 @@ fn main() -> anyhow::Result<()> {
}
Err(_) => {
// Only build bare bones cli
log::info!("was not opened in a repo with git, only showing bare-bones options");
_ = cli::CuddleCli::new(Arc::new(Mutex::new(vec![])))?.execute()?;
}
}
@@ -31,7 +33,10 @@ fn main() -> anyhow::Result<()> {
}
fn init_logging() -> anyhow::Result<()> {
tracing_subscriber::fmt().pretty().init();
tracing_subscriber::fmt()
.pretty()
.with_max_level(Level::INFO)
.init();
Ok(())
}