pathcify 0.0.1

CLI tool to recursively slugify file and directory names using dots, removing special characters and normalizing names.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use std::path::PathBuf;

/// Recursively slugify file and directory names using dot format
#[derive(Parser, Debug)]
#[command(name = "pathcify")]
#[command(author = "Your Name")]
#[command(version = "1.0")]
#[command(about = "Slugifies files and directories recursively")]
pub struct Cli {
    /// Path to process
    pub path: PathBuf,

    /// Force lowercase
    #[arg(short, long, default_value_t = false)]
    pub lowercase: bool,
}