9 lines
261 B
Rust
9 lines
261 B
Rust
use color_eyre::eyre::Result;
|
|
|
|
use crate::context::Context;
|
|
|
|
pub async fn server_version(ctx: Context) -> Result<()> {
|
|
let version = ctx.client.get_server_version().await?;
|
|
println!("{}.{}.{}", version.major, version.minor, version.patch);
|
|
Ok(())
|
|
}
|