Show CLI version in debug logs
use std::env::var;
use miette::{IntoDiagnostic, Result};
+use tracing::debug;
use watchexec::{event::Event, Watchexec};
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 mut runtime = config::runtime(&args)?;
runtime.filterer(if tagged_filterer {
