frostx 0.1.0

frostx monitors project directories for inactivity. Once a configured inactivity threshold elapses (e.g. "90 days since any file was modified"), frostx executes a pipeline of **actions** - e.g., checking git state, creating archives, uploading backups, deleting local copies. Automating the lifecycle of projects, frostx helps users manage disk space and maintain a clean workspace.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Generates man pages for all frostx subcommands using `clap_mangen`.
///
/// Usage: `gen_man` [`OUTPUT_DIR`]
///
/// Writes section-1 man pages (`frostx.1`, `frostx-init.1`, ...) to `OUTPUT_DIR`,
/// defaulting to `./man` when omitted.
use clap::CommandFactory;
use std::path::PathBuf;

fn main() -> anyhow::Result<()> {
    let out_dir: PathBuf = std::env::args_os()
        .nth(1)
        .map_or_else(|| PathBuf::from("man"), PathBuf::from);

    std::fs::create_dir_all(&out_dir)?;
    clap_mangen::generate_to(frostx::cli::Cli::command(), &out_dir)?;
    Ok(())
}