From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:60808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKV7p-0001W6-Nq for guix-patches@gnu.org; Sat, 27 Apr 2019 17:44:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKUvS-0005B4-Eg for guix-patches@gnu.org; Sat, 27 Apr 2019 17:32:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hKUvS-0005Ay-5B for guix-patches@gnu.org; Sat, 27 Apr 2019 17:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hKUvR-0004xa-VE for guix-patches@gnu.org; Sat, 27 Apr 2019 17:32:02 -0400 Subject: [bug#35456] [PATCH 1/1] guix package: Add 'install', 'remove', and 'upgrade' aliases. Resent-Message-ID: References: <20190427162500.13554-1-ludo@gnu.org> <20190427164907.14195-1-ludo@gnu.org> From: Ricardo Wurmus In-reply-to: <20190427164907.14195-1-ludo@gnu.org> Date: Sat, 27 Apr 2019 23:31:07 +0200 Message-ID: <87d0l72l0k.fsf@elephly.net> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 35456@debbugs.gnu.org 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! > 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 pro= file")) > + (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 alread= y removed many advanced options of =E2=80=9Cguix package=E2=80=9D from this alias. W= ould it make sense to also remove this one? (I don=E2=80=99t 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 [=E2=80=A6] > +(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=3DPROFILE use PROFILE instead of the user's default pro= file")) > + (display (G_ " > + --bootstrap use the bootstrap Guile to build the profile")) Same here=E2=80=A6. > 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 [=E2=80=A6] > +(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=3DPROFILE use PROFILE instead of the user's default pro= file")) > + (display (G_ " > + --bootstrap use the bootstrap Guile to build the profile")) =E2=80=A6and here. 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 onl= y to correct it to =E2=80=9Cguix package -i=E2=80=9D after an error. -- Ricardo