use clap::Parser;
use cmd::args::{Args, Command};
mod cmd;
fn main() {
tracing_subscriber::fmt::init();
let args = Args::parse();
match args.command {
Command::Run { command, source } => cmd::run::run(command, source),
Command::Mount {
source,
mountpoint,
no_dashboard,
} => cmd::mount::mount(source, mountpoint, no_dashboard),
Command::Unmount { mountpoint } => cmd::unmount::unmount(mountpoint),
Command::Init { folder } => cmd::init::init(folder),
Command::Check => cmd::check::check(),
Command::Explain { path } => cmd::explain::explain(path),
}
}