unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Konrad Hinsen <konrad.hinsen@fastmail.net>
Cc: 37443-done@debbugs.gnu.org
Subject: [bug#37443] [PATCH] scripts: pull: Add options for generation management
Date: Thu, 19 Sep 2019 13:55:56 +0200	[thread overview]
Message-ID: <878sqk33g3.fsf@gnu.org> (raw)
In-Reply-To: <m1tv98wpuf.fsf@fastmail.net> (Konrad Hinsen's message of "Thu, 19 Sep 2019 12:19:20 +0200")

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>>> And since I am in criticizing mood, the whole Guix management API
>>> suffers from bad naming. Consider "guix pull -l". What does it pull?  Or
>>> "guix package –-roll-back", which doesn't roll back a package but a
>>> profile. Guix is following the lead of git whose command line API makes
>>> sense only to people who have seen it grow historically.
>>
>> What would you suggest?  “guix log”, “guix roll-back”?
>
> I don't have a detailed and thought-out plan, but here are some ideas:
>
>  - Everything that modifies a profile (the standard package kind) starts
>    with "profile":
>
>      guix profile <profile-path> install ...
>      guix profile <profile-path> remove ...
>      guix profile <profile-path> roll-back
>
>    The <profile-path> could be made optional in some way for working
>    on the default profile.

OK.  A “guix profile” command has been proposed before.  I think it
makes sense in terms of taxonomy, but I don’t find it pretty in terms of
UI.

Also, now that we finally have “guix install” & co., which is really
what users expect, I feel less of an incentive for a catch-all “guix
profile” command.

Maybe we need more of these aliases, though, like “guix show”.

>  - The profile-independent operations of "guix package" already have
>    nice aliases, e.g. "guix search". So "guix package" could go away.

Yeah.  (In practice ‘guix package’ would have to be kept around, but
it’s OK since all these commands share the same code.)

>  - Everything that operates on "guix" (the software, including the
>    package definitions) starts with "itself":
>
>      guix itself update  (today's "guix pull")
>      guix itself roll-back

It’s a another instance where the categorization you propose makes sense
to me, but as a command I’d have to type, it’s not something I like.

Thanks,
Ludo’.

  reply	other threads:[~2019-09-19 11:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-18  7:52 [bug#37443] [PATCH] scripts: pull: Add options for generation management Konrad Hinsen
     [not found] ` <handler.37443.B.1568794875811.ack@debbugs.gnu.org>
2019-09-18  8:48   ` Konrad Hinsen
2019-09-18 16:33     ` zimoun
2019-09-18 20:08       ` Konrad Hinsen
2019-09-18 21:18       ` Ludovic Courtès
2019-09-19  9:02         ` zimoun
2019-09-18 21:07 ` bug#37443: " Ludovic Courtès
2019-09-19  6:33   ` [bug#37443] " Konrad Hinsen
2019-09-19  8:20     ` Ludovic Courtès
2019-09-19  9:41       ` zimoun
2019-09-19 17:22         ` Ricardo Wurmus
2019-09-19 18:17           ` zimoun
2019-09-19 18:47             ` Konrad Hinsen
2019-09-19 19:41           ` [bug#37443] Listing profiles Ludovic Courtès
2019-09-19 10:19       ` [bug#37443] [PATCH] scripts: pull: Add options for generation management Konrad Hinsen
2019-09-19 11:55         ` Ludovic Courtès [this message]
2019-09-19 12:23           ` zimoun
2019-09-19 12:35             ` Ludovic Courtès
2019-09-19 17:27               ` zimoun
2019-09-19 13:57           ` Konrad Hinsen

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=878sqk33g3.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=37443-done@debbugs.gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    /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).