rustic-rs 0.11.3

rustic - fast, encrypted, deduplicated backups powered by Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use abscissa_core::{Command, Runnable};
use clap::Parser;

// `version` command
#[derive(Command, Debug, Parser)]
pub struct VersionCmd {}

impl Runnable for VersionCmd {
    // Print the version and exit
    fn run(&self) {
        // Use the existing version helper from the parent module
        println!("rustic {}", crate::commands::version());
    }
}