unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: Paul Jewell <paul@teulu.org>, "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Command consistency: suggestion
Date: Wed, 11 Jan 2023 22:51:43 +0100	[thread overview]
Message-ID: <868ri83fkg.fsf@gmail.com> (raw)
In-Reply-To: <ac3b7573-2c31-14e9-40cb-e80b9893150e@teulu.org>

Hi,

On Mon, 09 Jan 2023 at 12:22, Paul Jewell via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:

> guix package --list-generations
>
> and
>
> guix system list-generations
>
> guix package has everything as an flag, but guix system (and guix home) 
> uses the concept of ACTION with options and arguments.

Well, “guix package“ also uses action and it is possible to combine
them.  For an example about the issue it leads, see bug#50473 [1].

1: <http://issues.guix.gnu.org/issue/50473>

> Perhaps the latter is clearer, and guix package should also follow the 
> same model?

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


  parent reply	other threads:[~2023-01-11 22:50 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 [this message]
2023-01-16 17:59   ` Paul Jewell via Development of GNU Guix and the GNU System distribution.
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

  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=868ri83fkg.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=paul@teulu.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).