mod get;
mod init;
mod load;
mod new;
mod run;
mod set;
use crate::error::Error;
use clap::ArgMatches;
pub fn run_command(
project_path: &str,
command: &str,
subcommand: &ArgMatches,
) -> Result<(), Error> {
match command {
"get" => get::get(project_path, subcommand),
"get-file" => get::get_file(project_path, subcommand),
"init" => init::init(project_path, subcommand),
"load" => load::load(project_path, subcommand),
"new" => new::new(project_path, subcommand),
"run" => run::run(project_path, subcommand),
"set" => set::set(project_path, subcommand),
"set-file" => set::set_file(project_path, subcommand),
_ => Ok(()),
}
}