From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cKccIRZxl2MuKgEAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 19:21:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gAX/IBZxl2OXtwAA9RJhRA (envelope-from ) for ; Mon, 12 Dec 2022 19:21:10 +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 36B5F2F291 for ; Mon, 12 Dec 2022 19:21:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4nPd-0005UA-Do; Mon, 12 Dec 2022 13:20:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4nPZ-0005SM-U4 for help-guix@gnu.org; Mon, 12 Dec 2022 13:20:23 -0500 Received: from bee.birch.relay.mailchannels.net ([23.83.209.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4nPX-0003h0-No for help-guix@gnu.org; Mon, 12 Dec 2022 13:20:21 -0500 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0470B641276; Mon, 12 Dec 2022 18:20:10 +0000 (UTC) Received: from pdx1-sub0-mail-a242.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 809DD641504; Mon, 12 Dec 2022 18:20:09 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1670869209; a=rsa-sha256; cv=none; b=x4xdSWWeWK2UYZImxs4n9YNqvyW1lM4FO+Ue7UwI7PdL+Qym5b67FiUpeRTj52F/ZjkXXH DKZ4r6P42xPJ7Co9EF0gmvCnTUVZSzkrtD+FdwgRUVbzKbNJqyopUBUgt7AO+fUDTXtgyI PoqQmZqRtz0W9BegxvGLQ7qDHqa8HONBy1azXwh5Njoub7P+sHYtituXU+spw0j/m9lbje 60omfbdDfoxg66hgHvN5LRmMBVHV+vaGa+PITDlt5OK7ZJRP9qK4fImxOO7ik/BldyRKJZ ZDl/qT+nGvheSgkMtjHu5tvCvEvB/WsfyiESudfj3gt7XpE4O8usn/UgmjihLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1670869209; h=from:from: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=wSvV/v991FcjxdkiN39fMqi6fK2QvTUMaoEGSMcpPt4=; b=66LerMmjHjCL0kvnbvE++PP5hL/H9Q99mWhf+1VgjkN2dUREe9NFEvS6kh+0S5vz+n1hXB NZExfe73wkjp8ixD5pE2SBwWezWGsQ2buKTNA3nwR7hpjxWtfp7MxyT0Jj6efSQySG7fmz hBqI2VWFlUVs9N42TzmV0JyXoO5h0pFru1++uhdgJjQpjFTuHjJXoeIaSbJ/Nq9kqFFwBH Wno19R+yXN4AXElLq1xdV0SA9kQFeKYA2VLIIw49O0A09zbPe0h8C43sSRNnHFMxkAGPRX NxQSF1XnM+ZMXH/0sdfKt0yJV9ICyFzldTn25enG5M5NU9hQDJK99E7fDOE0yw== ARC-Authentication-Results: i=1; rspamd-d48c5ddb-b4xh4; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Shoe-Ski: 4a72bbcb52f67056_1670869209783_3497447545 X-MC-Loop-Signature: 1670869209783:1952463460 X-MC-Ingress-Time: 1670869209783 Received: from pdx1-sub0-mail-a242.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.30.15 (trex/6.7.1); Mon, 12 Dec 2022 18:20:09 +0000 Received: from minotaur (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a242.dreamhost.com (Postfix) with ESMTPSA id 4NW9085NTNz3Q; Mon, 12 Dec 2022 10:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1670869209; bh=wSvV/v991FcjxdkiN39fMqi6fK2QvTUMaoEGSMcpPt4=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=0QtuLe4ETxNO8x6r1H18GHd6cQYhekQ5/Plnh9GTSUOgqqP2aYgljmuzwugdjIjVr u9SWxXOetAIPglNK7iCl7vF6hj5U0HYMZsYdn+iQ/evSLLXBtFsfEKG3VVXYJrcjpS Xs5GWFm8B3t6Zh1STOCR8+bPyGxR6nAx+KK1MmqOHAQo4PS75ir/7yd7Xt0xtrK5a/ 82WJFR5PpOYhhDBtKU4XxOpGttll2E4oul+0QtyFC3VE7mT5ib2bLanm7dher5ejAy C1SC/R260E1I1jzStMLn16B7uGz/TrHaNt3mypblW4T+0PEJDBUI8ZllIMX3VHwRoa dp9VebTsBLzLA== References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> <87edtbdpmo.fsf@polidoro.io> <86ilimgop6.fsf@gmail.com> <87a63ydk95.fsf@polidoro.io> <86r0x9g2bx.fsf@gmail.com> <20221208223048.00edc36c.koszko@koszko.org> <86359pa45q.fsf@gmail.com> <875yeke9qo.fsf@polidoro.io> <86fsdnl7hd.fsf@gmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro To: zimoun Cc: Wojtek Kosior , "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? Date: Mon, 12 Dec 2022 12:55:39 -0500 In-reply-to: <86fsdnl7hd.fsf@gmail.com> Message-ID: <87zgbs5vsi.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.209.14; envelope-from=peter@polidoro.io; helo=bee.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670869270; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wSvV/v991FcjxdkiN39fMqi6fK2QvTUMaoEGSMcpPt4=; b=TsWYTPhoPzhnVjsg8Ri6dT3jTbUh7J0vSSVPGaIAkecQQyDwNvwjerA134nMTBLtjoT5uy QYlumJJrHww1kVVOpudzmrt3y1Sd4mVxUMEREMjun0A4f7syjf3Jm0cUCSkHod3mV8gR6W PBMLS9Iy/3DQQlHt+xH6mqx11wn4Jt82X4woJ999wfUOgIm2XR1hbqhu/SxtXPKyh1hQs1 kZ7n8BLaV3ZFILaMzjssJGN+sRYli8St00FLa5HAXHeIAlcMKG4gOWvE3U5QJ2IKrqBfWz EXnLdsZjl2RjdWx1l2I7knCfWK+jwV+KnOZn0GktsKkvU2eMP7YYvKT70q0HIQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=0QtuLe4E; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1670869270; a=rsa-sha256; cv=pass; b=ZYYFpxBcW8nVWNHz3CAs3XibYgLRPqFYPletsP6W/w1iPoqIkwCH2/l5w5QAB3VIu31Nd1 pe5w2cSytl2bNorm6O4Y+GwwHFIS1h5sdXH3ZYXwY3HKgrw58/KNDfOH+xmf/r3a3sRL3F q9j6pLatAZGO7nDMOF8uMdAov3NxlhbA9OcCmEwBW/cht/wALc9tYRos38tu5VNplCgNG1 MsrAmjzpOci5kadajsBOr4i8Ervi2fGIwL6jNCSX4uPXXYrnP/KsZ0ZJ8ZwBZJmCkKLVgY N92KS9s5Injmw+WvS3Ogdy3go4Y0TkG1npg2E6zRde5c+IPS5gr9+7DGvuSoTg== X-Migadu-Spam-Score: -9.79 X-Spam-Score: -9.79 X-Migadu-Queue-Id: 36B5F2F291 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=0QtuLe4E; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none X-TUID: jxbjvpn3FIdu zimoun writes: > Because calling =E2=80=9Cguix serial-shell PORT=3D/dev/ttyUSB0=E2=80=9D or > =E2=80=9Cguix-serial-shell PORT=3D/dev/ttyUSB0=E2=80=9D is almost identic= al. :-) Yes good point. > > So the true question is how to implement? If using Shell script Using shell scripts would mean one script per command? I usually=20 have a set of commands that I would like to be able to run for=20 every project. I would like to minimize the number of extra files=20 in my project directory, so I would lean towards your Scheme API=20 option. > From my point of view, in this case, maybe an extension is a=20 > heavy > solution when a quick script would just smooth the workflow. Maybe it is too heavy a solution, but I do like the idea of just=20 needing the channels.scm, the guix.scm, and maybe a Makefile for=20 people who do not use guix. Or am I wrong and I would need more=20 files than that? I also like that a user could find information about the project=20 commands using guix help. Can command extensions be grouped into a=20 single sub-command so I would not feel like I am polluting the=20 guix command namespace? Like could I run something like "guix=20 project serial-shell PORT=3D/dev/ttyUSB0" or "guix project help" to=20 get the set of project-specific commands that I added as=20 extensions? Is there some sort of extension bootstrap process where you run an=20 intial command in the project directory every session to add the=20 extensions, then the extensions are available for future commands?