rustic_rs/commands/version.rs
1use abscissa_core::{Command, Runnable};
2use clap::Parser;
3
4// `version` command
5#[derive(Command, Debug, Parser)]
6pub struct VersionCmd {}
7
8impl Runnable for VersionCmd {
9 // Print the version and exit
10 fn run(&self) {
11 // Use the existing version helper from the parent module
12 println!("rustic {}", crate::commands::version());
13 }
14}