Show CLI version in debug logs
This commit is contained in:
parent
da22d34274
commit
aeb699b658
|
@ -1,6 +1,7 @@
|
||||||
use std::env::var;
|
use std::env::var;
|
||||||
|
|
||||||
use miette::{IntoDiagnostic, Result};
|
use miette::{IntoDiagnostic, Result};
|
||||||
|
use tracing::debug;
|
||||||
use watchexec::{event::Event, Watchexec};
|
use watchexec::{event::Event, Watchexec};
|
||||||
|
|
||||||
mod args;
|
mod args;
|
||||||
|
@ -47,6 +48,8 @@ async fn main() -> Result<()> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug!(version=%env!("CARGO_PKG_VERSION"), "constructing Watchexec from CLI");
|
||||||
|
|
||||||
let init = config::init(&args)?;
|
let init = config::init(&args)?;
|
||||||
let mut runtime = config::runtime(&args)?;
|
let mut runtime = config::runtime(&args)?;
|
||||||
runtime.filterer(if tagged_filterer {
|
runtime.filterer(if tagged_filterer {
|
||||||
|
|
Loading…
Reference in New Issue