diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 11:59:37 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 12:00:07 +0100 |
commit | 74db1104179db548ac49bf4722fba94f57ce2bc4 (patch) | |
tree | 49e3105d984536f2e8d1259152dc7f241e69142c /src/commands | |
parent | 09d19c7c8c5102f9be477aa848769fc12d4c7fa1 (diff) |
Add --all flag in find-pkg implementation
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dependencies_of.rs | 1 | ||||
-rw-r--r-- | src/commands/find_pkg.rs | 1 | ||||
-rw-r--r-- | src/commands/what_depends.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/dependencies_of.rs b/src/commands/dependencies_of.rs index 701e7f7..4a31c1d 100644 --- a/src/commands/dependencies_of.rs +++ b/src/commands/dependencies_of.rs @@ -31,6 +31,7 @@ pub async fn dependencies_of(matches: &ArgMatches, config: &Configuration, repo: print_build_deps); let flags = crate::ui::PackagePrintFlags { + print_all: false, print_runtime_deps, print_build_deps, print_sources: false, diff --git a/src/commands/find_pkg.rs b/src/commands/find_pkg.rs index a6e302a..8a56303 100644 --- a/src/commands/find_pkg.rs +++ b/src/commands/find_pkg.rs @@ -40,6 +40,7 @@ pub async fn find_pkg(matches: &ArgMatches, config: &Configuration, repo: Reposi Ok(()) } else { let flags = crate::ui::PackagePrintFlags { + print_all : matches.is_present("show_all"), print_runtime_deps : crate::commands::util::getbool(matches, "dependency_type", crate::cli::IDENT_DEPENDENCY_TYPE_RUNTIME), print_build_deps : crate::commands::util::getbool(matches, "dependency_type", crate::cli::IDENT_DEPENDENCY_TYPE_BUILD), print_sources : matches.is_present("show_sources"), diff --git a/src/commands/what_depends.rs b/src/commands/what_depends.rs index 1d3ed07..01b599b 100644 --- a/src/commands/what_depends.rs +++ b/src/commands/what_depends.rs @@ -36,6 +36,7 @@ pub async fn what_depends(matches: &ArgMatches, config: &Configuration, repo: Re .collect::<Result<Vec<_>>>()?; let flags = crate::ui::PackagePrintFlags { + print_all: false, print_runtime_deps, print_build_deps, print_sources: false, |