use crate::result::Result;
use crate::types::ResourcePathType;
use clap::{Args, Subcommand};
use std::path::PathBuf;
mod commands;
pub mod init;
pub mod r#move;
pub mod new;
pub fn main(args: ProjectArgs, verbose: bool) -> Result {
match args.command {
Command::AddScript(add_args) => commands::add_script(add_args, verbose),
}
}
#[derive(Debug, Args)]
pub struct ProjectArgs {
#[clap(subcommand)]
command: Command,
}
#[derive(Debug, Subcommand)]
enum Command {
AddScript(AddScriptArgs),
}
#[derive(Debug, Args)]
pub struct AddScriptArgs {
#[clap(parse(from_os_str))]
path: PathBuf,
#[clap(short, long, parse(from_os_str))]
project: Option<PathBuf>,
}