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
All checks were successful
CI / check (push) Successful in 5m42s
This commit is contained in:
parent
58082248ec
commit
61db74875f
4 changed files with 119 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue