1pub mod activity;
2pub mod cli;
3pub mod names;
4pub mod prime;
5pub mod registry;
6
7use anyhow::Result;
8
9pub fn run(cli: cli::Cli) -> Result<()> {
10 match cli.command {
11 cli::Commands::Register(args) => registry::execute_register(&args),
12 cli::Commands::Lookup(args) => registry::execute_lookup(&args),
13 cli::Commands::Annotate(args) => registry::execute_annotate(&args),
14 cli::Commands::Discover(args) => registry::execute_discover(&args),
15 cli::Commands::Prune(args) => registry::execute_prune(&args),
16 cli::Commands::Prime(args) => prime::execute(&args),
17 }
18}