From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:57665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKhQm-0002tB-OY for guix-patches@gnu.org; Sun, 28 Apr 2019 06:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKhQk-00050Q-SZ for guix-patches@gnu.org; Sun, 28 Apr 2019 06:53:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51486) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKhQc-0004vy-Hn for guix-patches@gnu.org; Sun, 28 Apr 2019 06:53:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKhQc-0001SZ-Ck for guix-patches@gnu.org; Sun, 28 Apr 2019 06:53:02 -0400 Subject: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> <87d0l72l0k.fsf@elephly.net> Date: Sun, 28 Apr 2019 12:52:19 +0200 In-Reply-To: <87d0l72l0k.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 27 Apr 2019 23:31:07 +0200") Message-ID: <8736m2csgs.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Ricardo Wurmus Cc: 35456@debbugs.gnu.org Hi! Ricardo Wurmus skribis: > Ludovic Court=C3=A8s 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! Cool! >> 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 > [=E2=80=A6] >> +(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=3DPROFILE use PROFILE instead of the user's default pr= ofile")) >> + (display (G_ " >> + --bootstrap use the bootstrap Guile to build the profile")) > > I have to admit that I never use =E2=80=9C--bootstrap=E2=80=9D. You alre= ady removed > many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias. = Would it make > sense to also remove this one? It=E2=80=99s used only for tests in fact, where we don=E2=80=99t want to re= build the world just to run profile hooks. Perhaps we could simply remove it from the =E2=80=98--help=E2=80=99 output, WDYT? > Aside from that it looks good to me. I expect this to be a very welcome > change for my colleagues who often typed =E2=80=9Cguix install=E2=80=9D o= nly to correct > it to =E2=80=9Cguix package -i=E2=80=9D after an error. Heheh, I guess they=E2=80=99re not the only ones. :-) Thanks, Ludo=E2=80=99.