Add a version banner with git revision and build metadata (echo --version, startup log, CTCP VERSION)
All checks were successful
CI / check (push) Successful in 5m42s

This commit is contained in:
Jean Chevronnet 2026-07-20 14:42:23 +00:00
parent 58082248ec
commit 61db74875f
No known key found for this signature in database
4 changed files with 119 additions and 1 deletions

View file

@ -11,7 +11,7 @@ impl Engine {
let cmd = parts.next().unwrap_or("").to_ascii_uppercase();
let arg = parts.next().unwrap_or("");
let response = match cmd.as_str() {
"VERSION" => format!("VERSION echo services {}", env!("CARGO_PKG_VERSION")),
"VERSION" => format!("VERSION {}", crate::version::short()),
"PING" => format!("PING {arg}"),
"TIME" => format!("TIME {}", echo_api::human_time(self.now_secs())),
"CLIENTINFO" => "CLIENTINFO ACTION CLIENTINFO PING TIME VERSION".to_string(),