with sourcegraph as well

This commit is contained in:
2022-12-17 22:56:07 +01:00
parent 6dc747f8b0
commit 51b54f83b6
8 changed files with 104 additions and 2 deletions

View File

@@ -5,12 +5,17 @@ mod prereqs;
fn main() -> eyre::Result<()> {
let matches = clap::Command::new("toolkit")
.subcommands([prereqs::prereqs()?, tldr::Tldr::cmd()?])
.subcommands([
prereqs::prereqs()?,
tldr::Tldr::cmd()?,
sourcegraph::Sourcegraph::cmd()?,
])
.get_matches();
match matches.subcommand() {
Some(("prereqs", subcmd)) => prereqs_exec(subcmd),
Some(("tldr", subcmd)) => tldr::Tldr::exec(subcmd),
Some(("sourcegraph", subcmd)) => sourcegraph::Sourcegraph::exec(subcmd),
_ => Err(eyre::anyhow!("no command selected!")),
}
}