diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-01-04 22:27:38 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-01-05 00:28:42 +0100 |
commit | db5a94445f3b21b307c73ea72ed495bda891ef28 (patch) | |
tree | 8a9367de0e41b6742a47f46a36e751d102b5f934 /doc | |
parent | d28ef4393719692371aee085d5723f5779cb6049 (diff) | |
download | guix-db5a94445f3b21b307c73ea72ed495bda891ef28.tar guix-db5a94445f3b21b307c73ea72ed495bda891ef28.tar.gz |
guix package: Allow multiple '--search' flags.
* guix/scripts/package.scm (find-packages-by-description): Change 'rx'
parameter to 'regexps'.
[matches-all?, matches-one?]: New procedures.
Use them.
(process-query): Collect regexps from all 'search' queries, and pass
them to 'find-packages-by-description'.
* tests/guix-package.sh: Add tests.
* doc/guix.texi (Invoking guix package): Document it.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index f155fbe818..a07bf824d6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -10,7 +10,7 @@ @include version.texi @copying -Copyright @copyright{} 2012, 2013, 2014, 2015 Ludovic Courtès@* +Copyright @copyright{} 2012, 2013, 2014, 2015, 2016 Ludovic Courtès@* Copyright @copyright{} 2013, 2014 Andreas Enge@* Copyright @copyright{} 2013 Nikita Karetnikov@* Copyright @copyright{} 2015 Mathieu Lirzin@* @@ -1462,6 +1462,21 @@ name: gmp @dots{} @end example +It is also possible to refine search results using several @code{-s} +flags. For example, the following command returns a list of board +games: + +@example +$ guix package -s '\<board\>' -s game | recsel -p name +name: gnubg +@dots{} +@end example + +If we were to omit @code{-s game}, we would also get software packages +that deal with printed circuit boards; removing the angle brackets +around @code{board} would further add packages that have to do with +keyboards. + @item --show=@var{package} Show details about @var{package}, taken from the list of available packages, in @code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU |