with network stats

This commit is contained in:
2022-12-18 14:47:28 +01:00
parent f8d2351538
commit 94f254047f
7 changed files with 187 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
use prereqs::prereqs_exec;
use util::Cmd;
mod prereqs;
@@ -10,14 +9,16 @@ fn main() -> eyre::Result<()> {
tldr::Tldr::cmd()?,
sourcegraph::Sourcegraph::cmd()?,
github::GitHub::cmd()?,
stats::Stats::cmd()?,
])
.get_matches();
match matches.subcommand() {
Some(("prereqs", subcmd)) => prereqs_exec(subcmd),
Some(("prereqs", subcmd)) => prereqs::prereqs_exec(subcmd),
Some(("tldr", subcmd)) => tldr::Tldr::exec(subcmd),
Some(("sourcegraph", subcmd)) => sourcegraph::Sourcegraph::exec(subcmd),
Some(("github", subcmd)) => github::GitHub::exec(subcmd),
Some(("stats", subcmd)) => stats::Stats::exec(subcmd),
_ => Err(eyre::anyhow!("no command selected!")),
}
}