diff --git a/Cargo.lock b/Cargo.lock index 577140e..cbee6ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1299,7 +1299,7 @@ checksum = "d554b7f530dee5964d9a9468d95c1f8b8acae4f282807e7d27d4b03099a46744" [[package]] name = "watchdog-rs" -version = "0.3.0" +version = "0.4.0" dependencies = [ "ansi_term", "axum", diff --git a/Cargo.toml b/Cargo.toml index 44dea24..4b9c28f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "watchdog-rs" description = "Minimalist & multi-region network monitoring tool written in Rust" license = "AGPL-3.0-or-later" -version = "0.3.0" +version = "0.4.0" authors = ["Saluki"] edition = "2021" readme = "README.md" diff --git a/src/main.rs b/src/main.rs index abf29e8..d6289cb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,8 @@ use cli::alerting; use crate::cli::{incident, status, init}; use crate::common::error::Error; +const VERSION: &str = env!("CARGO_PKG_VERSION"); + #[tokio::main] async fn main() { @@ -186,7 +188,7 @@ fn handle_cli_failure(cli_result: Result<(), Error>) { fn build_args() -> clap::Command { Command::new("Network watchdog") - .version("0.3.0") + .version(VERSION) .about("Detect network incidents accross regions") .arg_required_else_help(true) .subcommand(Command::new("init")