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,
show_config_files,
} => cmd::run::run(command, source, show_config_files),
Command::Mount {
source,
mountpoint,
no_dashboard,
show_config_files,
} => cmd::mount::mount(source, mountpoint, no_dashboard, show_config_files),
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),
}
}