guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Goals for 0.4


From: Ludovic Courtès
Subject: Re: Goals for 0.4
Date: Fri, 30 Aug 2013 20:31:20 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

>>>> • New ‘--list-generations’ and ‘--delete-generations’ options for
>>>>   ‘guix package’.
>
> I’ve been thinking about these options, and I’m not sure how they should
> work.
>
> Will it be enough to output a generation number and a list of packages
> when ‘--list-generations’ is used?  For example:
>
> Generation 1:
> guile 2.0.9   out,debug       gnu/packages/base.scm:1022:33
> guile-bootstrap       2.0     out     gnu/packages/bootstrap.scm:191:3
>
> Generation 2:
> hello 2.8     out     gnu/packages/base.scm:50:2

Perhaps there could be several formats.  For instance,
--list-generations would be equivalent to --list-generations=short:

  generation 1     Dec. 16 2013
  generation 2     May 7 2013

And then --list-generations=long would do something like:

  generation 1     Dec. 16 2013
    guile    2.0.7 out,debug    gnu/packages/guile.scm
    hello    2.8   out          gnu/packages/base.scm

  generation 2     May 7 2013
    guile    2.0.9 out          gnu/packages/guile.scm

WDYT?

> I think we could add ‘--from’ and ‘--to’ that have to be used with the
> mentioned options:
>
> $ guix package --delete-generations 1 3 8
> Deleting generations 1, 3, 8...
>
> $ guix package --delete-generations --from=4 --to=8
> Deleting generations from 4 to 8...

Rather, I would do:

  --delete-generations=3..9

It’s easier to parse and to type.

Likewise, it could even support:

  --delete-generations=1month

> Also, I’d like to remove the dash from ‘--roll-back’ since ‘--fallback’
> is written without one.
>
> What do you think?

I’ll have to disagree.  :-)

There’s no such verb as “rollback”, I think, whereas “fallback” is a
valid noun (and we don’t have the choice for “fallback”, since there are
messages in the daemon that mention it.)

Now, if you had --rollback as an alias, I won’t scream either...

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]