From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qIEKNUbhbV86egAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 12:23:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uG4CMUbhbV+DHQAAbx9fmQ (envelope-from ) for ; Fri, 25 Sep 2020 12:23:34 +0000 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 73D4B940A3F for ; Fri, 25 Sep 2020 12:23:34 +0000 (UTC) Received: from localhost ([::1]:56006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLmlB-0004qX-B1 for larch@yhetil.org; Fri, 25 Sep 2020 08:23:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLmkg-0004nw-V1 for guix-patches@gnu.org; Fri, 25 Sep 2020 08:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLmkg-00061w-Lx for guix-patches@gnu.org; Fri, 25 Sep 2020 08:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLmkg-0007FE-HW for guix-patches@gnu.org; Fri, 25 Sep 2020 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43477] Guix aliases? (was: [bug#43477] [PATCH 0/1] guix: graph: Add 'plain' backend.) Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 43477@debbugs.gnu.org Received: via spool by 43477-submit@debbugs.gnu.org id=B43477.160103656527804 (code B ref 43477); Fri, 25 Sep 2020 12:23:02 +0000 Received: (at 43477) by debbugs.gnu.org; 25 Sep 2020 12:22:45 +0000 Received: from localhost ([127.0.0.1]:42986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLmkO-0007EO-QO for submit@debbugs.gnu.org; Fri, 25 Sep 2020 08:22:45 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:45897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLmkM-0007EA-8I for 43477@debbugs.gnu.org; Fri, 25 Sep 2020 08:22:43 -0400 Received: by mail-qt1-f180.google.com with SMTP id z2so1604274qtv.12 for <43477@debbugs.gnu.org>; Fri, 25 Sep 2020 05:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=02gYO+D1yhp8iO9YHm+m7hBpsyJPLSdDsu1KFehhpcg=; b=fV1cEqMqe2kp+mTdufenEbJpc2tL6ToGJQFBOlTpLaPOO0R/fCxZmo9DUoWU0nkBLV bB7SdxK9Sapw2U3v9ORzkOy4MtPGAE9eFDzn65aKCKZ4FGJnfsFpB+IrTMmKD7uEw68A 7Tbys+6w9Kq8rambg2XpPdLdA9FNxWJ4Uwq/DSbA8bV/fhsWv+jOo0p42fEcrjHC5w+y 6sriXxI/WuI8krK2I+sojqkgDfa0g7sP/J+Ac2X1aYGzpkaMDfQomGywbbem9jwgZGqu XAsV4DABVa5rdeOLDQZEY0hOvHOkR5QqB/HC4J4KCRhijdOxb3hWgbeSTneXpN+cDtIn QdOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=02gYO+D1yhp8iO9YHm+m7hBpsyJPLSdDsu1KFehhpcg=; b=gXaqiyxzstqYRHI4nGG7EH5kONj3EvycFTCdPZpbh3CP+YtrDD89JxgG9ZMhIlcfzO 7OJmQVsm5cHwtp4HlCVvoAvClaTwxKCPXJmH4hFlpj8fq/De94woedmkP1X6sRBa7PTN 152MnwMFbIkW05l6bMXHsSyXD859zY7KzwBfGxnnIG6PvEKji6PQbyAfe+82vrHf+HTz 66zVO1MDbMOFpcAAKkiFThiu/IpOslSuqseMfXGtAjL6TbwaGRqOJUziCcxuQxhUyLXe Rt0Z4VE5i4RIB/T3ZY4l91pv2I8+Zb3EuA2hJYwwmUUthHrPQKr1j0bghJI8JKQFJIw4 PTMA== X-Gm-Message-State: AOAM531i165+K//x0BLk8Il8buSBWubP+tlmX5iopH4gOTbS9YXpLtTJ vE6AIE5jPrjqpVn/4etiuZT2ZMhM/v0bFl0Y9N0= X-Google-Smtp-Source: ABdhPJxBJ1eWSyhgKjhgYa+sJTqqETvBOsHpesIsVSu6wps1LraW1dy6HjEvhkhQlaXl+VakIAqSvEqkGaryRxSgqxk= X-Received: by 2002:ac8:5317:: with SMTP id t23mr4256155qtn.354.1601036556700; Fri, 25 Sep 2020 05:22:36 -0700 (PDT) MIME-Version: 1.0 References: <20200917193931.14699-1-zimon.toutoune@gmail.com> <87v9gbtg9w.fsf@elephly.net> <87o8lv8cao.fsf@gnu.org> <87wo0i2odg.fsf@gnu.org> <87o8luf9nh.fsf@elephly.net> In-Reply-To: <87o8luf9nh.fsf@elephly.net> From: zimoun Date: Fri, 25 Sep 2020 14:22:25 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=fV1cEqMq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 9ef/SHAt8Ybv On Fri, 25 Sep 2020 at 12:10, Ricardo Wurmus wrote: > > There is a "guix graph --path" which is really nice. Why not "guix > > graph --list-nodes"? > > Wouldn=E2=80=99t the tree view that Ludo proposed match your use case? Y= ou can > still grep the output (filtering non-alphanum characters), but it would > be more useful by default. I would say no. :-) You are proposing: guix graph -b ludo-backend | tr -dc '\0-\177' right? I will never remember that. So it means I would have a script wrapper, somehow; and in this case, instead a AWK wrapper around the graphviz backend could already do the job. Well, it remembers the discussion here [1]. [1] My understanding of this situation: 1- specific "guix graph" case: implement something like Ludo proposed; "--backend plain" in the meaning of non-graphical or terminal displayable backend. 2- add a mechanism to have aliases. The #1 is low priority to me. Let's expand explanations about the #2. Now with "guix repl", the user can extend Guix by their own scripts. Therefore, it could be nice: a) to have a location by default (say ~/.config/guix/scripts) b) to run them with "guix foo" instead of "guix repl -- ~/.config/guix/scripts/foo.scm" And then, we can all be happy. ;-) It eases the tests of new experimental command-line tools, I can locally change the behaviour of "guix environment --ad-hoc", I can experiment with new output formats for "guix search" instead of recutils, etc.. Well, the philosophy of custom extensions. WDYT? All the best, simon