From bbebc19ce4e33430884f12d3e04b66abf3183dfe Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 8 Dec 2020 10:55:58 +0100 Subject: Enhance find-pkg subcommand to take more flags for printing package information Signed-off-by: Matthias Beyer --- src/commands/find_pkg.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/commands/find_pkg.rs') 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") + ) } } -- cgit v1.2.3