mcmodbuild 0.1.1

Format for describing how mods should be built and automatically building them from a file.
Documentation
use std::path::PathBuf;

use clap::{Parser, Subcommand};

#[derive(Debug, Clone, Parser)]
#[clap(version)]
pub struct McModBuild {
    #[clap(subcommand)]
    pub subcommand: Subcommands,
}

#[derive(Debug, Clone, Subcommand)]
pub enum Subcommands {
    Build {
        #[clap(required = true)]
        file: PathBuf,

        #[clap(short = 'd')]
        destination: Option<PathBuf>,
    },
    Install {
        #[clap(required = true)]
        file: PathBuf,

        #[clap(short = 'd')]
        destination: Option<PathBuf>,
    },
    Init {
        destination: Option<PathBuf>,
    },
}