image-organiser 0.3.4

A tool to organise images into folders by date
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Args;
use std::path::PathBuf;

use crate::dateformatter::strategy::DateGroupingStrategy;

#[derive(Args)]
pub struct Arguments {
    /// The directory to which files will be copied or moved
    pub target_directory: PathBuf,
    /// The glob pattern to match files
    pub pattern: String,
    /// The grouping strategy to use
    #[arg(value_enum)]
    pub strategy: Option<DateGroupingStrategy>,
}