1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
//! The `version` subcommand

#![allow(clippy::never_loop)]

use super::KmsCommand;
use abscissa::{Command, Runnable};

/// The `version` subcommand
#[derive(Command, Debug, Default, Options)]
pub struct VersionCommand {}

impl Runnable for VersionCommand {
    /// Print version message
    fn run(&self) {
        println!("{} {}", KmsCommand::name(), KmsCommand::version());
    }
}