abscissa_generator 0.1.0

Template-based generator for creating new Abscissa applications
Documentation
//! `version` subcommand

#![allow(clippy::never_loop)]

use super::{{~command_type~}};
use abscissa::{Command, Options, Runnable};

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

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