all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Jewell via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org>
To: Simon Tournier <zimon.toutoune@gmail.com>,
	"guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Command consistency: suggestion
Date: Mon, 16 Jan 2023 18:59:00 +0100	[thread overview]
Message-ID: <b5350e7b-7811-a56f-a1fb-819aec91a94f@teulu.org> (raw)
In-Reply-To: <868ri83fkg.fsf@gmail.com>

Hi Simon,

Thanks for the input - comments at the bottom:

On 11/01/2023 22:51, Simon Tournier wrote:

> 
> It is often discussed. :-) Well, ‘guix package’ uses SRFI-37 [2] and it
> is possible to combine some action; as --switch-generation and
> --delete-generations for instance.  Aside note that one transaction can
> install and remove:
> 
>      guix package -i foo -r bar
> 
> which would not be possible when using single action.
> 
> The CLI of ‘guix package’ will not change, IMHO.  The mitigation of what
> you are considering as an inconsistency is to have “alias“; guix search,
> guix, install, guix remove, etc.
> 
> Last, we could imagine a Guix extension [3] and then (not checked :-))
> maybe the user could opt in and install this extension for replacement.
> 
> 2: <https://www.gnu.org/software/guile/manual/html_node/SRFI_002d37.html>
> 3: <https://10years.guix.gnu.org/video/guix-repl-to-infinity-and-beyond>
> 
> Cheers,
> simon


I hadn't considered (or even known about) the multiple commands 
possibility. Maybe for consistency then guix system should also work the 
same way as guix package -

guix system --list-generations

This is how I tripped over this problem initially, because of course 
this doesn't work!

Doing it this way could also allow multiple actions in one line:

guix system --switch-generation ... --delete-generation ...

but I am reading into your comment that guix system does _not_ use 
SRFI-37, and therefore cannot combine actions. In other words, it would 
take more effort to implement this change?

I suppose for those of you who have been in guix for several years, this 
is no issue, since you are familiar with all the different options. to 
me, as a relative newcomer, it didn't feel so smooth. If nothing changes 
I shall not be resorting to aliases, but simply making sure I know the 
correct syntax to achieve what I want!

Best regards,
Paul

(who has finally got his Guix system laptop working as expected)


  reply	other threads:[~2023-01-16 17:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-09 12:22 Command consistency: suggestion Paul Jewell via Development of GNU Guix and the GNU System distribution.
2023-01-09 15:47 ` Joshua Branson
2023-01-11 21:51 ` Simon Tournier
2023-01-16 17:59   ` Paul Jewell via Development of GNU Guix and the GNU System distribution. [this message]
2023-01-17  8:23     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5350e7b-7811-a56f-a1fb-819aec91a94f@teulu.org \
    --to=guix-devel@gnu.org \
    --cc=paul@teulu.org \
    --cc=zimon.toutoune@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.