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