From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OIIlG1VxMGI3cQEAgWs5BA (envelope-from ) for ; Tue, 15 Mar 2022 11:58:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4OLPF1VxMGKgFgEAauVa8A (envelope-from ) for ; Tue, 15 Mar 2022 11:58:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1820B173FB for ; Tue, 15 Mar 2022 11:58:29 +0100 (CET) Received: from localhost ([::1]:41530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU4sl-0003N5-Q4 for larch@yhetil.org; Tue, 15 Mar 2022 06:58:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU4JZ-0005WD-D7 for guix-patches@gnu.org; Tue, 15 Mar 2022 06:22:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU4JW-0004HW-1R for guix-patches@gnu.org; Tue, 15 Mar 2022 06:22:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nU4JV-0000tK-TP for guix-patches@gnu.org; Tue, 15 Mar 2022 06:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54393] [PATCH 0/2] Add 'guix manifest' to "translate" commands to manifests Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Mar 2022 10:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54393@debbugs.gnu.org Received: via spool by 54393-submit@debbugs.gnu.org id=B54393.16473396863374 (code B ref 54393); Tue, 15 Mar 2022 10:22:01 +0000 Received: (at 54393) by debbugs.gnu.org; 15 Mar 2022 10:21:26 +0000 Received: from localhost ([127.0.0.1]:47624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU4Iw-0000sM-4w for submit@debbugs.gnu.org; Tue, 15 Mar 2022 06:21:26 -0400 Received: from mail-il1-f172.google.com ([209.85.166.172]:40832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nU4Iu-0000s9-3t for 54393@debbugs.gnu.org; Tue, 15 Mar 2022 06:21:24 -0400 Received: by mail-il1-f172.google.com with SMTP id h21so5031393ila.7 for <54393@debbugs.gnu.org>; Tue, 15 Mar 2022 03:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qPlCU0ydoMZ2pja9VwP96TbqCxtBh78xLCuXLplCgAQ=; b=gxnMp7li1o2qsaLf5Qwj7dcAMMVkOjv7dYZuIj7LDE8Jp/LzVP0paN3c2qqccREDLF dh0HDRJcN9essDweHlpWqxA2KlHowm4pc5GqurObPr3+Qatl6qz4bTT7idmIjzgSvhTc OtxCN8Hdai7QtFV90syq6cxn5pSh9tAhRl+rAyjD9fjZKHlgjgEDmZyFMUvfu3o7Qxao fQHbjDpWv3NebO+wzo7QQ8Wta66oHVlIRWpeBbXfdhPVDAUGV5mToK9+y++3VkQH6Cpm bCbHYNRz2JZjRtc6szRy2qztYtndA9wxFEQgQnXHDTA7OPd6nj/Sgf24UHmN4Dp1+hdQ mRjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=qPlCU0ydoMZ2pja9VwP96TbqCxtBh78xLCuXLplCgAQ=; b=cD1fZ1X0yUSfyAOdYW6iy5ufgsRZo50lfVGtBSQDfahWJ35mCSrGmbNqw/65/cYmAF wrupu/d4PpesRdeZ73h1KMIgUjK3uIbLIgZ1Jf38z8/DSaoDFSxsvvrKkahvxh8qnxL/ kK7eseGcr4jWLrcAUEBGdSPNaIBdpTRV9hG3UGSkNzSnIjvMXY3E8F0ZD0wydhTzM7VE L4uTsVCO4dWobZIfdpwUqeZTzJ4Fvcee77OJCc22Vt7f/2WkYUR89RPUyc4OCs/NbZ8P ZeO5ekWJp9gxsAV9NhGu6SOfMh1iXL1WFzXOJ9j92lSZxfwhW/FaRg8dRw6mFnovZymk M4Xw== X-Gm-Message-State: AOAM533LuCVMiBFM7EM2N1tRVgKPWAkcmYDkfxCXPzouOugzmqcKGs4z UfGgcGA6vpruMjvbzZYHO/MzVGsArA1F0jSWbYddGIeP X-Google-Smtp-Source: ABdhPJyMyUDPw9i75c7+RYJTsMU3V/WSozWl68SgY5hGhuWBNa5fTtaTgzdab251uxgHQrjo8YCS/dqQAKGmpOGseAc= X-Received: by 2002:a05:6e02:d49:b0:2c7:8ae9:baea with SMTP id h9-20020a056e020d4900b002c78ae9baeamr11318189ilj.202.1647339678353; Tue, 15 Mar 2022 03:21:18 -0700 (PDT) MIME-Version: 1.0 References: <20220314215015.24435-1-ludo@gnu.org> <87czinmuww.fsf_-_@gnu.org> In-Reply-To: <87czinmuww.fsf_-_@gnu.org> From: zimoun Date: Tue, 15 Mar 2022 11:21:07 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647341909; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qPlCU0ydoMZ2pja9VwP96TbqCxtBh78xLCuXLplCgAQ=; b=cyUwjCCvR1ffjAXiLh1BOWeYXX0K4jPNrs22d1C3a/Te82PxcUGH83GJIRR19C0ttcuB8N PPy1jhcYa+66ZsU7Nt3OrknkZAX6GmQsEiDk2XlGdvvdWFVXZZSUjT2L7rlPDB55tNQLop fCYRIH2Sh7AEQ9OlT8prQbfwEmn27RoLiHmFESUbjAvPhk8Sx8aqQ/JeeoXq66gPLF6BRM mnVfCE6Fz8yJWP60uNHYx6+tSOsv6p8WuUlQbwtee8oasPUhe4dkisZFLKetk0YEsHDBMN 9vUpUI5kWalRDwnlIHT4IWs/Jl9witbTb4TCUcz2KFsTer29jt80kZrxxVN8BQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647341909; a=rsa-sha256; cv=none; b=ag0ID0RxE3Bgt/32jBaDMJhjDobz78ZWHkvJYcvI9wFUDLC5j/2syQ48ISv0cSKlwUnjWy MjJ84ba2mxCqmwtUgUh+pw0qx/idhq/8luUbSlBrMFV5ig+DiTPhTtlnPDbDITwrtX9ylT eRDIaRYg4mxD3B8gN7wyiik7qOxTaDds8KhIzL4QzzwaukVTKLb0ptbAAMpQpSmq0iiRPD lSdr+Ks/9gcLmhX1OAg9SkZ4bmTCykpOz9DWtBc+fL7MPV+IqLEsxkabH/xXDCbnWaJReN 4EQuaEOf7eNPo2ijfMeKhW4qrxuin6LJQ0SROpKOeUwWPyJsXMJBxl8SCXUyiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gxnMp7li; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gxnMp7li; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1820B173FB X-Spam-Score: 5.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: nQvNit9QBlGE Hi, On Tue, 15 Mar 2022 at 10:23, Ludovic Court=C3=A8s wrote: > OTOH, sub-commands as just as cheap (and as expensive!) as command-line > options. That is, one way or another, we=E2=80=99ll have to maintain the= thing, > whether it=E2=80=99s called =E2=80=98--create-manifest=E2=80=99 or =E2=80= =98manifest=E2=80=99. I agree... > To me, the argument in favor of the sub-command is that that it=E2=80=99s= more > discoverable, clearer, and easier to use. A user who has a =E2=80=98guix= shell=E2=80=99 > command line can replace =E2=80=98shell=E2=80=99 by =E2=80=98manifest=E2= =80=99 and get their manifest. ...but I am not convinced. :-) For instance, about discoverability, assuming "guix install / remove" would not be an alias of "guix package", then I would go va "guix help" then "guix install --help" then probably via "guix help" again, then "guix remove --help" etc. An extreme counter-example to your "clearer" point about subcommands is Git: I do not consider such many subcommands more discoverable because it gives the impression of a scattered mess. Subcommands provide a thematic hierarchy. For sure, it is a balance. :-) Because Guix is doing many many things, it is hard for people to understand, IMHO, therefore a sub-command hierarchy helps for catching the Guix features... I digress. :-) Well, my point is, for example, the logic of "guix system" then "guix system <--options>" appears to me easier to grasp and discover. Idem with "guix import". I think "guix vm" or "guix image" would not ease the discoverability. What is unfortunate with "guix package" is that and <--option> are both using dash-dash. Another story. :-) I am not convinced that promoting a niche use-case would be a good idea. For what my opinion is worth. Well, I trust your experience if you think it is better. > Thinking about it, another option would be to add an =E2=80=98--export-ma= nifest=E2=80=99 > option to =E2=80=98guix shell=E2=80=99 instead. Thinking about it, it would be the most coherent from my point of view. And idem for --export-channels, no? Cheers, simon