GNU bug report logs - #56083
[PATCH] style: Add option '--list-stylings'.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Hartmut Goebel <h.goebel@HIDDEN>; Keywords: patch; dated Sun, 19 Jun 2022 08:44:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 56083 <at> debbugs.gnu.org:


Received: (at 56083) by debbugs.gnu.org; 19 Jun 2022 09:02:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 19 05:02:29 2022
Received: from localhost ([127.0.0.1]:50666 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2qpB-0004gK-FB
	for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 05:02:29 -0400
Received: from xavier.telenet-ops.be ([195.130.132.52]:44388)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1o2qp6-0004g8-Ga
 for 56083 <at> debbugs.gnu.org; Sun, 19 Jun 2022 05:02:28 -0400
Received: from [172.20.10.9] ([188.189.158.25])
 by xavier.telenet-ops.be with bizsmtp
 id kx2N2700B0Z9yEL01x2N4p; Sun, 19 Jun 2022 11:02:23 +0200
Message-ID: <694cd6a2380b614c595929751b6ecbd25df6fd14.camel@HIDDEN>
Subject: Re: [bug#56083] [PATCH] style: Add option '--list-stylings'.
From: Maxime Devos <maximedevos@HIDDEN>
To: Hartmut Goebel <h.goebel@HIDDEN>, 56083 <at> debbugs.gnu.org
Date: Sun, 19 Jun 2022 11:02:21 +0200
In-Reply-To: <bad30ecc00bc6c29f22dd515068e010064ebf05e.1655627838.git.h.goebel@HIDDEN>
References: <bad30ecc00bc6c29f22dd515068e010064ebf05e.1655627838.git.h.goebel@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-WR1J/9uDYCytnYcDJ/yD"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1655629343; bh=3csEXw+Qs802qnfXMXMsV2DYmKaYVgxadG5UVDbyHHA=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=OA0UlfDezZ1DHAyzcbKAAa8pL18BneDTtmgfAwUDz2K59qmOEGoKIel/vqSTr7H4I
 +rBTdJl0Q+9yQu/W77sPolQ/CnKVIBUDQSJoBmA3Al6cccTa0UKFfrwOU83mcMP4dr
 2QFuuJGLl/t2J/f7pNm77aott8wY4jJRP7IZWfbc21vHDKTfrfVKmN0fgc8Y/hlEWe
 p0tHTZFZvjBJItWn/BeQ0iucTEWY0rtjsekzdybI+cPO67tBuI/mbYXSaKfRfYtFDx
 U39TOzodb7PR5LQplo0Puo6Lv+3V5eppoIwmtJoWZdmt7s+qIUwgFZMHIoLLODyCAD
 gbyrWCTbUFUOw==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 56083
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--=-WR1J/9uDYCytnYcDJ/yD
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hartmut Goebel schreef op zo 19-06-2022 om 10:37 [+0200]:
> +@item --list-stylings
> +@itemx -l
> +List and describe the available styling rule and exit.

Nitpick: =E2=80=98styling rule=E2=80=99 -> =E2=80=98styling rules=E2=80=99.=
  Otherwie LGTM.

Greetings,
Maxime.

--=-WR1J/9uDYCytnYcDJ/yD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYq7mHRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7g52AP9KZY1De00woGUW+QM4/3dS+F3/
i5tGgFcOVNkjyEbZLQEAiRE6C/X63kXDGmBRfo4UMVs6n8fRhchIxIeFWzxTLwo=
=gZCq
-----END PGP SIGNATURE-----

--=-WR1J/9uDYCytnYcDJ/yD--





Information forwarded to guix-patches@HIDDEN:
bug#56083; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Jun 2022 08:43:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 19 04:43:19 2022
Received: from localhost ([127.0.0.1]:50611 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2qWd-00046y-7T
	for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 04:43:19 -0400
Received: from lists.gnu.org ([209.51.188.17]:43014)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <h.goebel@HIDDEN>) id 1o2qWb-00046r-K6
 for submit <at> debbugs.gnu.org; Sun, 19 Jun 2022 04:43:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45384)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <h.goebel@HIDDEN>)
 id 1o2qWb-0004VM-CJ
 for guix-patches@HIDDEN; Sun, 19 Jun 2022 04:43:17 -0400
Received: from mout.kundenserver.de ([212.227.17.10]:51129)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <h.goebel@HIDDEN>)
 id 1o2qWW-0002lA-4w
 for guix-patches@HIDDEN; Sun, 19 Jun 2022 04:43:17 -0400
Received: from hermia.goebel-consult.de ([87.176.142.69]) by
 mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis)
 id 1MsIbU-1niIiK22Fm-00toJ0 for <guix-patches@HIDDEN>; Sun, 19 Jun 2022
 10:37:50 +0200
Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2])
 by hermia.goebel-consult.de (Postfix) with ESMTP id F209C5F535;
 Sun, 19 Jun 2022 10:37:50 +0200 (CEST)
From: Hartmut Goebel <h.goebel@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] style: Add option '--list-stylings'.
Date: Sun, 19 Jun 2022 10:37:47 +0200
Message-Id: <bad30ecc00bc6c29f22dd515068e010064ebf05e.1655627838.git.h.goebel@HIDDEN>
X-Mailer: git-send-email 2.30.4
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:FgxFWozCzHkepvGSb698CZ+alDewS7qGHAuH+WZiz/7AOwBNcls
 +zzujfIDUUoSujh+SCrcNZu/bmt0zEZ1tFtNMyCOImFWcs83lP1mT4n3XuwrgpRl+oPVcEU
 bhE5+m9IPwfk5wZ9cAwYeP8x4cKvZQ4EuaoFKaFlu5iZ/gvWoqejQFA6IxEEYGRpyns3P22
 JspmGo9XxMkMVM9sFckhA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:yiNGtfghuDk=:jSQCCuZg4L97BpJdvfFQVd
 x9C8Z0+jKqCgqADENFzs0h+WWrqFUMnOQwMlO2d4tuSMl1o+6amkXZq7FGjTKB38pCeeKlFdv
 rRgB2Y3xLfuIkS+10I5028WayLAgxe0MD87H7T7/55rjC1BwPiFY+FyRZ0QS1gStqdKGcw8Wl
 QnZKWUOMyAjtLQcWtrbJCf9536EpwHXtzcsocv1NIcTZqm6wSb1UBdPMOtslTSgBW6NdX0kXt
 nxWPiIlKjV+A9TWQCPm5WWbLO0LfM9pQLCAqXcWxPLPBdSxJIr0TTQrV6goBivlcQCW1DVriW
 cia387m7FmRSS9VCKfwLKoz1KJ2bPE+lC5zWOk3PMNWTkwfcbSOSYkImc0bYcsxF2um3aLBYQ
 mKFtk9DJLpXGRkdFmBjKeHP4utgdXNVS9hURJUr0A9EQmDtx2Kme2SpHTEilKpkT8YPrNARCP
 ZKRSe36EwPhq5JOpLTJoswG/ezkVOzIU4Z9HEzSF8Axp8im9Ef1YOtARIUQJ1aB0x95gDxSTv
 +i5s162Cg2LwWd1wkJ/ZJA3FDoVDpb7Iz7SKTW1tftrzh8iRxyMq34CgLT8Clhi8DUr6DLScX
 BevXIPBNYZkt/ZWmQoBEHVcblX1mYd12Er5BauuRqc6M21GANYcsUiFPB6o0wi4NIq6OiTcy9
 RNJvNpXGOUE9JDouW3icx3YBR7OMDm9PW6w/TCG05662hD+0QmoHrZwSe7Rpy2CbTIG8WSJSZ
 WlfANuuUN17pWQ242tE+VhVAMcEI9bb2WmhRgAUHu3Dk6o5ZpMxbbPXOuVU=
Received-SPF: none client-ip=212.227.17.10;
 envelope-from=h.goebel@HIDDEN; helo=mout.kundenserver.de
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01,
 T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* guix/scripts/style.scm (show-stylings): New procedure.
  (%options, show-help): Add "--list-stylings".
* doc/guix.texi (Invoking guix style): Document "-l".
---
 doc/guix.texi          |  4 ++++
 guix/scripts/style.scm | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 86348fc02c..2768762e62 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -13963,6 +13963,10 @@ The @option{--input-simplification} option described below provides
 fine-grain control over when inputs should be simplified.
 @end table
 
+@item --list-stylings
+@itemx -l
+List and describe the available styling rule and exit.
+
 @item --load-path=@var{directory}
 @itemx -L @var{directory}
 Add @var{directory} to the front of the package module search path
diff --git a/guix/scripts/style.scm b/guix/scripts/style.scm
index 8123570c38..3381a54130 100644
--- a/guix/scripts/style.scm
+++ b/guix/scripts/style.scm
@@ -797,15 +797,26 @@ PACKAGE."
                 (lambda args
                   (show-help)
                   (exit 0)))
+        (option '(#\l "list-stylings") #f #f
+                (lambda args
+                  (show-stylings)
+                  (exit 0)))
         (option '(#\V "version") #f #f
                 (lambda args
                   (show-version-and-exit "guix style")))))
 
+(define (show-stylings)
+  (display (G_ "Available styling rules:\n"))
+  (display (G_ "- format: Format the given package definition(s)\n"))
+  (display (G_ "- inputs: Rewrite package inputs to the “new style”\n")))
+
 (define (show-help)
   (display (G_ "Usage: guix style [OPTION]... [PACKAGE]...
 Update package definitions to the latest style.\n"))
   (display (G_ "
   -S, --styling=RULE     apply RULE, a styling rule"))
+  (display (G_ "
+  -l, --list-stylings   display the list of available style rules"))
   (newline)
   (display (G_ "
   -n, --dry-run          display files that would be edited but do nothing"))
-- 
2.30.4





Acknowledgement sent to Hartmut Goebel <h.goebel@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#56083; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 19 Jun 2022 09:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.