From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: extract tools from guix scripts Date: Thu, 08 Mar 2018 21:15:39 +0100 Message-ID: <87bmfyl3x0.fsf@elephly.net> References: <87d10el7c7.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu2Bs-0006gI-Of for guix-devel@gnu.org; Thu, 08 Mar 2018 15:31:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eu2Bp-0000CS-Hf for guix-devel@gnu.org; Thu, 08 Mar 2018 15:31:04 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eu2Bp-0000BF-6S for guix-devel@gnu.org; Thu, 08 Mar 2018 15:31:01 -0500 In-reply-to: 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?G=C3=A1bor?= Boskovits Cc: guix-devel G=C3=A1bor Boskovits writes: > 2018-03-08 20:01 GMT+01:00 Ricardo Wurmus : > >> Hi Guix, >> >> under =E2=80=9Cguix/scripts=E2=80=9D there are a couple of tools that ar= e really useful, >> such as =E2=80=9Cguix challenge=E2=80=9D. While they are great for the = command line, >> I=E2=80=99d really like to use them from within Guile. >> >> Using =E2=80=9C(guix-challenge)=E2=80=9D directly is cumbersome, because= I need to >> provide an argument list =E2=80=9Cargs=E2=80=9D, which is then parsed in= ternally. >> Instead, I=E2=80=99d like to be able to say >> >> (challenge #:urls (list "a" "b") >> #:packages (list foo bar baz)) >> >> and have it produce some report values. Then =E2=80=9Cguix-challenge=E2= =80=9D could be >> implemented in terms of =E2=80=9Cchallenge=E2=80=9D. >> >> The same might be useful for =E2=80=9Cguix-build=E2=80=9D or =E2=80=9Cgu= ix-environment=E2=80=9D. >> >> > I agree. This would also enable more flexible cli possibilities, and > would be really useful for scripting. Does this idea fit to the > improve command line tools outreachy idea? The outreachy project is about making the *output* of Guix prettier and less cluttered, so this would not be part of that project. --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net