mod cli;
mod client;
mod install;
mod playground;
mod preview;
mod tab;
mod ui;

use clap::Parser;

fn main() {
    let args = cli::Cli::parse();
    match args.command {
        cli::Command::Health        => cli::health(),
        cli::Command::Config        => cli::config(),
        cli::Command::Convert(c)    => cli::convert_cmd(c),
        cli::Command::FromLibrary(c)=> cli::from_library_cmd(c),
        cli::Command::Features(c)   => cli::features_cmd(c),
        cli::Command::Thumbnail(c)  => cli::thumbnail_cmd(c),
        cli::Command::ThumbnailBatch(c) => cli::thumbnail_batch_cmd(c),
        cli::Command::Preview(c)    => cli::preview_cmd(c),
        cli::Command::ThumbPlayground(c) => playground::run(c),
        cli::Command::Install(c)    => install::run(c),
        cli::Command::Completions(c)=> cli::completions(c),
    }
}