eggress-cli 1.0.7

CLI binary for the eggress multi-protocol proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `eggress version`: deterministic version rendering.

use eggress_cli::EXIT_SUCCESS;

/// Print `eggress X.Y.Z` and return 0.
///
/// Single version source: the built package version. No runtime
/// initialization, config loading, or network access; output contains no
/// timestamps or nondeterministic state.
pub fn handle_version() -> i32 {
    println!("eggress {}", env!("CARGO_PKG_VERSION"));
    EXIT_SUCCESS
}