From: Ricardo Wurmus <rekado@elephly.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 35456@debbugs.gnu.org
Subject: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases.
Date: Sat, 27 Apr 2019 23:31:07 +0200 [thread overview]
Message-ID: <87d0l72l0k.fsf@elephly.net> (raw)
In-Reply-To: <20190427164907.14195-1-ludo@gnu.org>
Ludovic Courtès <ludo@gnu.org> writes:
> * guix/scripts/install.scm, guix/scripts/remove.scm,
> guix/scripts/upgrade.scm, tests/guix-package-aliases.sh: New files.
> * Makefile.am (MODULES, SH_TESTS): Add them.
> * po/guix/POTFILES.in: Add them.
> * guix/scripts/package.scm (guix-package): Split with...
> (guix-package*): ... this. New procedure.
> * doc/guix.texi (Invoking guix package): Document them.
> (Binary Installation, Application Setup, Package Management)
> (Packages with Multiple Outputs, Package Modules)
> (X.509 Certificates, Installing Debugging Files): Use 'guix install' in
> simple examples.
I like it!
> diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm
> new file mode 100644
> index 0000000000..611ed1f712
> --- /dev/null
> +++ b/guix/scripts/install.scm
[…]
> +(define (show-help)
> + (display (G_ "Usage: guix install [OPTION] PACKAGES...
> +Install the given PACKAGES.
> +This is an alias for 'guix package -i'.\n"))
> + (display (G_ "
> + -p, --profile=PROFILE use PROFILE instead of the user's default profile"))
> + (display (G_ "
> + --bootstrap use the bootstrap Guile to build the profile"))
I have to admit that I never use “--bootstrap”. You already removed
many advanced options of “guix package” from this alias. Would it make
sense to also remove this one?
(I don’t feel strongly about this.)
> diff --git a/guix/scripts/remove.scm b/guix/scripts/remove.scm
> new file mode 100644
> index 0000000000..9204740d65
> --- /dev/null
> +++ b/guix/scripts/remove.scm
[…]
> +(define (show-help)
> + (display (G_ "Usage: guix remove [OPTION] PACKAGES...
> +Remove the given PACKAGES.
> +This is an alias for 'guix package -r'.\n"))
> + (display (G_ "
> + -p, --profile=PROFILE use PROFILE instead of the user's default profile"))
> + (display (G_ "
> + --bootstrap use the bootstrap Guile to build the profile"))
Same here….
> diff --git a/guix/scripts/upgrade.scm b/guix/scripts/upgrade.scm
> new file mode 100644
> index 0000000000..bf3b8a0710
> --- /dev/null
> +++ b/guix/scripts/upgrade.scm
[…]
> +(define (show-help)
> + (display (G_ "Usage: guix upgrade [OPTION] [REGEXP]
> +Upgrade packages that match REGEXP.
> +This is an alias for 'guix package -u'.\n"))
> + (display (G_ "
> + -p, --profile=PROFILE use PROFILE instead of the user's default profile"))
> + (display (G_ "
> + --bootstrap use the bootstrap Guile to build the profile"))
…and here.
Aside from that it looks good to me. I expect this to be a very welcome
change for my colleagues who often typed “guix install” only to correct
it to “guix package -i” after an error.
--
Ricardo
next prev parent reply other threads:[~2019-04-27 21:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-27 16:25 [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' Ludovic Courtès
2019-04-27 16:49 ` [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases Ludovic Courtès
2019-04-27 21:31 ` Ricardo Wurmus [this message]
2019-04-27 22:06 ` Tobias Geerinckx-Rice
2019-04-28 10:52 ` Ludovic Courtès
2019-04-29 8:22 ` bug#35456: " Ludovic Courtès
2019-04-28 11:26 ` [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' Jonathan Brielmaier
2019-04-28 13:26 ` Ludovic Courtès
2019-04-29 7:42 ` Jonathan Brielmaier
2019-04-29 13:31 ` zimoun
2019-04-29 17:10 ` Ludovic Courtès
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=87d0l72l0k.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=35456@debbugs.gnu.org \
--cc=ludo@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).