diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 10:55:58 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-08 10:55:58 +0100 |
commit | bbebc19ce4e33430884f12d3e04b66abf3183dfe (patch) | |
tree | 42dce4941c8786de6d047cd1ba27c1125e7af6e0 /src/commands/find_pkg.rs | |
parent | e65dcc4cab8211b0cc06218e3482c340cb673d0b (diff) |
Enhance find-pkg subcommand to take more flags for printing package information
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/find_pkg.rs')
-rw-r--r-- | src/commands/find_pkg.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/commands/find_pkg.rs b/src/commands/find_pkg.rs index 90cf6c1..b53ea6b 100644 --- a/src/commands/find_pkg.rs +++ b/src/commands/find_pkg.rs @@ -43,8 +43,18 @@ pub async fn find_pkg(matches: &ArgMatches, config: &Configuration, repo: Reposi crate::ui::print_packages(&mut outlock, format, iter, + config, true, - true) + true, + matches.is_present("show_sources"), + matches.is_present("show_dependencies"), + matches.is_present("show_patches"), + matches.is_present("show_env"), + matches.is_present("show_flags"), + matches.is_present("show_deny_images"), + matches.is_present("show_phases"), + matches.is_present("show_script") + ) } } |