From: zimoun <zimon.toutoune@gmail.com>
To: 41183@debbugs.gnu.org
Cc: zimoun <zimon.toutoune@gmail.com>
Subject: [bug#41183] [PATCH 0/1] guix package, show: Support multiple queries.
Date: Mon, 11 May 2020 01:37:47 +0200 [thread overview]
Message-ID: <20200510233747.13155-1-zimon.toutoune@gmail.com> (raw)
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
next reply other threads:[~2020-05-10 23:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-10 23:37 zimoun [this message]
2020-05-10 23:40 ` [bug#41183] [PATCH] guix package, show: Support multiple queries zimoun
2020-05-11 20:25 ` bug#41183: " Ludovic Courtès
2020-05-11 21:48 ` [bug#41183] " zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200510233747.13155-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=41183@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).