From 3e35553df4673ed05615adc088fdbbc3f212c876 Mon Sep 17 00:00:00 2001 From: Arno Bauernöppel Date: Fri, 8 Jul 2022 20:36:17 -0700 Subject: equery: Add -F TMPL option to depends module Like in other modules it is now possible to format the output of the equery module 'depends' with the commandline switch '-F' and TMPL. The man page was adujusted. A new static method 'print_formated' was created. In method 'format_depend' is checked if the new option is present. Depending on the check the PackageFormatter is used to display the dependencies. manually apply github PR, some minor editing. Signed-off-by: Brian Dolbec --- man/equery.1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'man') diff --git a/man/equery.1 b/man/equery.1 index ee7ad7b..9cb046f 100644 --- a/man/equery.1 +++ b/man/equery.1 @@ -129,6 +129,10 @@ Include dependencies that are not installed. This can take a while. .br Search for both direct and indirect dependencies. .HP +.B \-F, \-\-format=\fITMPL\fP +.br +Customize the output format of the matched packages using the template string \fITMPL\fP. See the \fB\-\-format\fP option for \fBlist\fP below for a description of the \fITMPL\fP argument. +.HP .BI "\-\-depth=" "NUM" .br Limit the indirect dependency tree to a depth of \fINUM\fP. \fB\-\-depth=0\fP is equivalent to not using \fB\-\-indirect\fP. -- cgit v1.2.3