Skip to main content

chksum_cli/
md5.rs

1use chksum::MD5;
2
3use crate::{Args, subcommand};
4
5/// Calculate MD5 digest.
6#[derive(Debug, clap::Args)]
7pub struct Subcommand {
8    #[command(flatten)]
9    pub args: Args,
10}
11
12impl Subcommand {
13    /// Handles subcommand execution.
14    pub fn execute(&self) -> i32 {
15        subcommand::<MD5>(&self.args)
16    }
17}