From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:34320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKQLv-0002Kg-9y for guix-patches@gnu.org; Sat, 27 Apr 2019 12:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKQLu-00027a-98 for guix-patches@gnu.org; Sat, 27 Apr 2019 12:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKQLu-00027U-6Y for guix-patches@gnu.org; Sat, 27 Apr 2019 12:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKQLu-0007nf-2J for guix-patches@gnu.org; Sat, 27 Apr 2019 12:39:02 -0400 Subject: [bug#35456] [PATCH 0/1] Add 'guix install', 'guix remove', and 'guix upgrade' Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:34125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKQL3-0001bR-1H for guix-patches@gnu.org; Sat, 27 Apr 2019 12:38:10 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 27 Apr 2019 18:25:00 +0200 Message-Id: <20190427162500.13554-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35456@debbugs.gnu.org Hello Guix! Here’s a change that’s both trivial and anecdotal by its size and complexity, and super important after 7 years typing ‘guix package -i’ when every other tool out there has an ‘install’ sub-command. :-) The main question is how we are going to present it when we introduce people to Guix. In the manual I listed the aliases and changed several instances of ‘guix package -i’ to ‘guix install’. To me, ‘guix package’ remains unavoidable, but having ‘guix install’ in particular is important to help newcomers get started quickly. Technically, the aliases are not dumb: you cannot do, say, ‘guix install -r foo’ to remove a package. There’s little code duplication beyond ‘show-help’ and the license header. Thoughts? Rejection? Happiness? :-) Thanks, Ludo’. Ludovic Courtès (1): guix package: Add 'install', 'remove', and 'upgrade' aliases. Makefile.am | 4 ++ doc/guix.texi | 39 ++++++++++----- guix/scripts/install.scm | 81 +++++++++++++++++++++++++++++++ guix/scripts/package.scm | 11 ++++- guix/scripts/remove.scm | 78 ++++++++++++++++++++++++++++++ guix/scripts/upgrade.scm | 90 +++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 3 ++ tests/guix-package-aliases.sh | 58 ++++++++++++++++++++++ 8 files changed, 352 insertions(+), 12 deletions(-) create mode 100644 guix/scripts/install.scm create mode 100644 guix/scripts/remove.scm create mode 100644 guix/scripts/upgrade.scm create mode 100644 tests/guix-package-aliases.sh -- 2.21.0