mmv 0.1.0

lib to mass move files with template names
Documentation
#![forbid(unsafe_code)]

use clap::Parser;
use std::path::PathBuf;

use crate::{input_parser::ParsedPattern, output_pattern::ParsedOutput};

#[derive(Debug, Parser)]
pub struct MmvArgs {
    /// The input path
    input_path: PathBuf,
    /// The output path
    output_path: PathBuf,
}

impl MmvArgs {
    pub fn get_parsed_input_pattern(&self) -> ParsedPattern {
        ParsedPattern::new(self.input_path.as_path())
    }

    pub fn get_parsed_output(&self) -> ParsedOutput {
        ParsedOutput::new(&self.output_path)
    }
}