From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJy4j-0001DH-07 for guix-patches@gnu.org; Tue, 06 Nov 2018 04:55:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJy4c-0006ws-KX for guix-patches@gnu.org; Tue, 06 Nov 2018 04:55:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gJy4c-0006w7-BO for guix-patches@gnu.org; Tue, 06 Nov 2018 04:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gJy4c-0007C5-5W for guix-patches@gnu.org; Tue, 06 Nov 2018 04:55:02 -0500 Subject: [bug#33286] Add 'list-formats' to 'guix pack' Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJy42-0000ox-0q for guix-patches@gnu.org; Tue, 06 Nov 2018 04:54:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJy2x-0004jW-Bm for guix-patches@gnu.org; Tue, 06 Nov 2018 04:53:22 -0500 Received: from flashner.co.il ([178.62.234.194]:58406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJy2x-0004fp-1u for guix-patches@gnu.org; Tue, 06 Nov 2018 04:53:19 -0500 Received: from localhost (unknown [5.102.239.133]) by flashner.co.il (Postfix) with ESMTPSA id 793614005A for ; Tue, 6 Nov 2018 09:53:17 +0000 (UTC) Date: Tue, 6 Nov 2018 11:53:16 +0200 From: Efraim Flashner Message-ID: <20181106095316.GB1206@macbook41> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33286@debbugs.gnu.org --f0KYrhQ4vYSV2aJu Content-Type: multipart/mixed; boundary="nVMJ2NtxeReIH9PS" Content-Disposition: inline --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I was looking at the help menu for 'guix pack' and I realized that I didn't know what formats were available and there wasn't a flag to show them. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --nVMJ2NtxeReIH9PS Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-pack-List-the-available-formats.patch" Content-Transfer-Encoding: quoted-printable =46rom af9a132a662f1d703df1c32278a45d2adca146ed Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Tue, 6 Nov 2018 11:50:48 +0200 Subject: [PATCH] pack: List the available formats. * guix/scripts/pack.scm (show-formats): New variable. (%options, show-help): Add 'list-formats' option. --- guix/scripts/pack.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 83bfa4ce0..9056ada6d 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2017, 2018 Ricardo Wurmus ;;; Copyright =C2=A9 2018 Konrad Hinsen ;;; Copyright =C2=A9 2018 Chris Marusich +;;; Copyright =C2=A9 2018 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -551,6 +552,18 @@ please email '~a'~%") (squashfs . ,squashfs-image) (docker . ,docker-image))) =20 +(define (show-formats) + ;; Print the supported pack formats. + (display (G_ "The supported formats for 'guix pack' are:")) + (newline) + (display (G_ " + tarball A self-contained tarball, ready to run on another machine.= ")) + (display (G_ " + squashfs A squashfs image, ready for 'cluster engines' and the like= =2E")) + (display (G_ " + docker A tarball ready for 'docker load'.")) + (newline)) + (define %options ;; Specifications of the command-line options. (cons* (option '(#\h "help") #f #f @@ -567,6 +580,10 @@ please email '~a'~%") (option '(#\f "format") #t #f (lambda (opt name arg result) (alist-cons 'format (string->symbol arg) result))) + (option '("list-formats") #f #f + (lambda args + (show-formats) + (exit 0))) (option '(#\R "relocatable") #f #f (lambda (opt name arg result) (alist-cons 'relocatable? #t result))) @@ -621,6 +638,8 @@ Create a bundle of PACKAGE.\n")) (newline) (display (G_ " -f, --format=3DFORMAT build a pack in the given FORMAT")) + (display (G_ " + --list-formats list the formats available")) (display (G_ " -R, --relocatable produce relocatable executables")) (display (G_ " --=20 2.19.1 --nVMJ2NtxeReIH9PS-- --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvhZIwACgkQQarn3Mo9 g1HWZBAApJAfhl83Oxs1kk9mYrr/Se1y+4cqLxTK0V3OVGofYBXkvsmS2sVEdx57 wCyxFBzhzu9xc404UuNphI5IF711XmSRH5cWhFBHhmS++KcYu6PMeT2TksdQGgwp Mexr/9j1cVKux0YhWgNVCnlKvHNhV33Mzn59unoOskhk4mL6Q4nKe9Tn3MiNXMjD ldismupQbw3TAL3wRyTkD6fW5QANtVhH3pseMZcsS2C0we+iDyhtrp/5CdF/jHjN B1SHlJYqIqKD7CMa8aV45wi1gQJd8JlBRdgtNJpdOsIRpsU7YQDpIIEf/YJ6Mb0d HzPYNW+sHoCrHh60xmQkWTHwfO7Cp+L/a+NQsHKLvQAf6AdURAyNhPF0rqzFdAVK UVo6UQWPKkjyvXQ1YFT6F9fhengSfRk0e3cSitUmsBku5UA0A6k5mAoXnxZ0mW2G Zs97Yw0XY0dGKgKVISmrFDM5HdovR9sBGdOH5zAJWhIphtH99P6jNa2wd5hI87vX Z9ExuaIGy5UqzVQyq/GIwaLVgYkA2EV5Fw9dKjKFblaVanwmWh7//2hiG67YVr5u daNRSbUqDJx7BH1FRGN6DoO9WYmH72uz2XI/3SYljgGIPej+D4X51qlkQmoHdifa PYlV+Q0/v6zvM6HeOUn4KrSq0dr2lkIVBneRG4aP9pdqkahNa54= =9Azt -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--