unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41183] [PATCH 0/1] guix package, show: Support multiple queries.
@ 2020-05-10 23:37 zimoun
  2020-05-10 23:40 ` [bug#41183] [PATCH] " zimoun
  0 siblings, 1 reply; 4+ messages in thread
From: zimoun @ 2020-05-10 23:37 UTC (permalink / raw)
  To: 41183; +Cc: zimoun

Dear,

This patch adds the feature:

  guix package --show=emacs --show=hello

and therefore, it allows to pipe:

 guix graph emacs --path libffi | xargs guix show


Note that:

 1. "guix package" processes from right to left.
 2. "guix show" processes from left to right.

It is how "guix packages" is implemented.  However, it appears more natural to
display in order; that's why "guix show" reverses the order.

 3. Because dealing with multiple different queries does not seems "keep it
 simple", "guix package" starts with the last query (the most of left) and
 then processes all the queries corresponding to this one.


For example,

a) guix package --show=emacs --search=hello --show=libffi
will show the packages 'emacs' and 'libffi', skipping 'search'.

b) guix package --show=emacs  --show=libffi --search=hello
will search the package 'hello', skipping 'show'.

It is already how '--search' works and has been extended to '--show'.  Does it
need to be documented in the manua?



All the best,
simon




zimoun (1):
  guix package, show: Support multiple queries.

 guix/scripts/package.scm | 7 ++++++-
 guix/scripts/show.scm    | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.26.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-11 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-10 23:37 [bug#41183] [PATCH 0/1] guix package, show: Support multiple queries zimoun
2020-05-10 23:40 ` [bug#41183] [PATCH] " zimoun
2020-05-11 20:25   ` bug#41183: " Ludovic Courtès
2020-05-11 21:48     ` [bug#41183] " zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).