summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-11 13:12:58 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-11 13:12:58 +0100
commit19337f3581dc3430615d6d019b8dc7aeb7c2d1b2 (patch)
treebfa8e672b91f6a5dee2884b7f5ee4ed9f1df0348 /src/main.rs
parenta9a10ab8e50c51c2bbdab93f7275f82372f94901 (diff)
Add "tree-of" subcommand to print dependency tree of a package
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ca642b8..a896313 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -147,6 +147,11 @@ async fn main() -> Result<()> {
crate::commands::lint(&repo_path, matches, progressbars, &config, repo).await?
}
+ Some(("tree-of", matches)) => {
+ let repo = load_repo()?;
+ crate::commands::tree_of(matches, repo, progressbars).await?
+ }
+
Some((other, _)) => return Err(anyhow!("Unknown subcommand: {}", other)),
None => return Err(anyhow!("No subcommand")),
}