cargo-rpm 0.8.0

Build RPMs from Rust projects using Cargo workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! `version` subcommand

#![allow(clippy::never_loop)]

use super::CargoRpmCmd;
use abscissa_core::{Command, Options, Runnable};

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

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