From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: Profiles/manifests-related command line interface enhancements Date: Mon, 18 Nov 2019 15:15:23 +0100 Message-ID: References: <87mudrxvs8.fsf@ambrevar.xyz> <87mudd59ho.fsf@gnu.org> <877e4glyc3.fsf@ambrevar.xyz> <87v9rxx8ri.fsf@gnu.org> <87r227qxf7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53609) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWhoZ-0007qr-6e for guix-devel@gnu.org; Mon, 18 Nov 2019 09:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWhoX-00066v-Sn for guix-devel@gnu.org; Mon, 18 Nov 2019 09:15:38 -0500 In-Reply-To: <87r227qxf7.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix Devel On Sat, 16 Nov 2019 at 23:27, Ludovic Court=C3=A8s wrote: > > Me too :-) It's "guix package" that is the worst offender in my > > opinion. It does two distinct things: querying the package database and > > managing profiles. And now that we have "guix search" for queries, > > We also have =E2=80=98guix show=E2=80=99, but there=E2=80=99s no standalo= ne command equivalent > to =E2=80=98--list-installed=E2=80=99, =E2=80=98--list-available=E2=80=99= , =E2=80=98--list-profiles=E2=80=99, and > =E2=80=98--list-generations=E2=80=99. IMHO, we should have a generic alias system "=C3=A0 la" Git or an UI modifier via channel. It is not reasonable to duplicate all the commands just for convenience. Because convenience mainly depends on personal preference. The same way that we add "guix workflow" or "guix home", a forward move should to package some "guix flavor", e.g., add the command "guix profile" via channel (or package). Then simply "guix install guix-profile" will add the very command. Konrad already proposed similar. > 1. Arrange so that =E2=80=98--ad-hoc=E2=80=99 becomes the default in = =E2=80=98guix > environment=E2=80=99, and add a =E2=80=98--devel=E2=80=99 (?) option= for what=E2=80=99s currently > the default. I agree. David proposed that in "The future of 'guix environment'". https://lists.gnu.org/archive/html/guix-devel/2017-08/msg00300.html And as Konrad mentioned, I prefer "--inputs-of" instead of "--devel". > Tricky because of compatibility considerations, but would be an > improvement, and goes in the direction of shortening the distance > between =E2=80=98guix environment=E2=80=99 and =E2=80=98guix package= =E2=80=99. Let bump the version and break compatibility. :-p > 2. Add that same =E2=80=98--devel=E2=80=99 option to =E2=80=98guix pack= age=E2=80=99. And to be consistent, why not add a similar option to manifest (via "package-environment-inputs" exporting as "" same than "--option-name"; I opt for option-name equal inputs-of instead of devel :-)) All the best, simon