1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::command::handler;
use crate::Opt;

pub fn execute(opt: Opt) -> color_eyre::Result<()> {
    run(opt)
}

fn run(opt: Opt) -> color_eyre::Result<()> {
    match opt {
        Opt::List => handler::exec_list(),
        Opt::Registry { command } => handler::handle_registry(command),
    }
}