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 ms5.migadu.com with LMTPS id 4EiaMsswxWI7mgAAbAwnHQ (envelope-from ) for ; Wed, 06 Jul 2022 08:50:51 +0200 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 8KFoMsswxWLqdQEAauVa8A (envelope-from ) for ; Wed, 06 Jul 2022 08:50:51 +0200 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 96B2010D35 for ; Wed, 6 Jul 2022 08:50:51 +0200 (CEST) Received: from localhost ([::1]:34982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8ys5-0002d6-Jq for larch@yhetil.org; Wed, 06 Jul 2022 02:50:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8ymX-0006cS-JK for guix-devel@gnu.org; Wed, 06 Jul 2022 02:45:05 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:44024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8ymV-0003Ct-Ia; Wed, 06 Jul 2022 02:45:05 -0400 Received: by mail-wr1-x42f.google.com with SMTP id d16so14217239wrv.10; Tue, 05 Jul 2022 23:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Gwd2DkJCTQNnPtEnlhtSveojSWlsc82kJ/QGOhRoxiM=; b=cgPDEcuj5ecDXQVGGKb/a43JRt/dTYwxLNY8fjUJ8X5O+K29vqcITVA8ovY7567vNZ TYqUhPtfAjU3/5ZV2vw+Cpispp+SSk+4FUIUoWVqRtfY3jCA5Y5TuuYBBEquWoDLxOXO PkjRC/4AZgpcj5UkwFUMiFKpB80YBbkfs7rKq732g9bgmyykytrddI8HuuInLtAvnboF 6K5clPGCe3aJMOK6H+5f84Mpo8Uj9uuIEitwxXCyZgdHchR5nTvL9u20hcLhySaPkLdQ Emczwj3ZXchuCklG5BwkK6rlY+ESsp1rKTy8l4cOgI/MJj2OiNeJ4aDScrNdil7fvfta 9kug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Gwd2DkJCTQNnPtEnlhtSveojSWlsc82kJ/QGOhRoxiM=; b=BJnjOW5DY3MGjNeldwlezfCB5AQVvqBK114sNGEhX4PONC1pZSMemNI3NPN/f5cifA m3avl2GtVNidvDE4zJjuAi1Vn66opOZ5gALgh8/1oQyUWpoqgTRVtshrGvD+zJdcLW0l qllWIF+NmJUd7IJqIQtXsQreSKSzvwYsbABaprptzPMMLOb1E3XexwpfaKsNIMQbv0qj CNSNx2s3a00gPIzOI+P5Mj3/wsktNZy2tIrJHfybyY7dfKoz+DGlt90lXDTXe3KQLshM E+xiTX9PADpH0a/CyP4oE+/zzaqEMeSWgfrHBsL7d30KVkhO+K2yKnVZVZPbM+t5Pim9 MlSw== X-Gm-Message-State: AJIora+FT1vwUkuGs6d7mUJL2L06Ww7My1FpbMXZKK68VNxWUrF+N/1w wb530WJmjhgdjgELuwkBu4bSWm1p1Vs= X-Google-Smtp-Source: AGRyM1veFMk4DGMFvT4s0KFfCPiAaKUCFWjF/b3Nm/mxjkuk02zTQ+5jcDlNTxjflPAQ4eOPTi0ZDg== X-Received: by 2002:adf:f9c3:0:b0:21d:7b3d:d924 with SMTP id w3-20020adff9c3000000b0021d7b3dd924mr2349488wrr.536.1657089900347; Tue, 05 Jul 2022 23:45:00 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id g1-20020adffc81000000b00213ba3384aesm35741960wrr.35.2022.07.05.23.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 23:44:59 -0700 (PDT) From: zimoun To: jgart Cc: Tobias Geerinckx-Rice , guix-devel@gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Guix Devel Subject: Re: repl macro (metacommand?) for guix CLI (sub)commands In-Reply-To: <20220705172743.GB3448@gac> References: <20220703131112.GB5967@gac> <87mtdpau7y.fsf@gnu.org> <20220704132159.GC3017@gac> <86tu7wxzpw.fsf@gmail.com> <20220705172743.GB3448@gac> Date: Wed, 06 Jul 2022 08:44:32 +0200 Message-ID: <87o7y2zqnj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1657090251; 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=Gwd2DkJCTQNnPtEnlhtSveojSWlsc82kJ/QGOhRoxiM=; b=k4vXjOw/aHsZJpMMLehdKqZHCD5EF4yU6a7I0+uFytZm9uBeYRdrR21iN54xuAjE8na2n5 qU6qnW3AuY2ZgGzxWOmtZmoVUfpdZMrLO4DIBXhDOGBLmHe+ig05O51AErR/CL26uF2tMq ElKXvVSrVov5irMB1aaKhZwgcbxZWLQoRRX7V1CEXhTrZAtRjR4VKRgfSRdodOYfJQElEO ZhWLYU50Re8BYO991VrVlKPw9LNxLO/Tu0Il0gvkeaopdK5kcmLASu6m55QExNdrF3idZH sHF6Ju3lWxKuqmR0VH2sIIty3sZZFrq4+6GVr89JTkUkZY13jzj26lDcRaItYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657090251; a=rsa-sha256; cv=none; b=kO84Ia9JpSHKZ4ZAIaYnHYXVT+2bc9z7dLOWNL7SyUcp8sgoTfVWUn9B7OS0m32GhW6S2H o4Cb1z00K/zEYr13ur5HcYPJKvt3ksA4FEAUcYDDDZLP02YKeVpY29sMlDm+8ewZHn+RxS k3/gN3xxEg0Q+CtPUo5aYL/acmfXdlEpg7/8IWh8zAXTlgvfzjW8UeqCMsnd2KHj3IaXJi wyLi0WFccaju8zDmFibFaM6UWC2bLZfSembLCYkyxJvDIgn6k3ITFQTIAFjP5CP6hFPB0c ph5W35hgbZOWmNkjUqcGjK+/tYSWS+mmSg4+4hicSDe2x79N8m8ie9EPOEn7Mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cgPDEcuj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cgPDEcuj; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 96B2010D35 X-Spam-Score: -9.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: V6S6xhDEPDGQ Hi, On mar., 05 juil. 2022 at 17:27, jgart wrote: > That's a good question! Maybe we should make a feature table and analyze > what we currently have exposed to decide what we might want in the near > future that we don't currently have. What is already exposed: --8<---------------cut here---------------start------------->8--- $ guix repl GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,help guix Guix Commands [abbrev]: ,run-in-store EXP - Run EXP through the store monad. ,enter-store-monad - Enter a REPL for values in the store m= onad. scheme@(guix-user)> --8<---------------cut here---------------end--------------->8--- And patch#56114 [1] introduce in addition: ,verbosity LEVEL - Change build verbosity to LEVEL. ,lower OBJECT - Lower OBJECT into a derivation and ret= urn it. ,build OBJECT - Lower OBJECT and build it, returning i= ts output file name(s). 1: >> Is it possible to detect if an interactive call? I was thinking to add >> a global parameter in =E2=80=99(guix scripts repl) and then this new >> =E2=80=99maybe-exit=E2=80=99 could check it; but I guess Guile provides = a better >> mechanism for checking interactiveness. > > Do you know if guile provides a way of checking that? Should we ask on > the guile mailing list or should we read more code first to see what's > currently provided? I do not know about a Guile feature allowing to check the interactiveness. It seems worth to ask on Guile mailing list because, if such feature exists then, I have missed from the Guile manual. Cheers, simon