From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cNvqGbyZdmP6GAAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 21:29:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cI/NGbyZdmMgjAAAauVa8A (envelope-from ) for ; Thu, 17 Nov 2022 21:29:48 +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 461C13F9BD for ; Thu, 17 Nov 2022 21:29:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovlVQ-0006yu-JW; Thu, 17 Nov 2022 15:29:04 -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 1ovlVP-0006xp-4K for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovlVO-0007OQ-RY for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovlVO-0003Tb-N5 for guix-patches@gnu.org; Thu, 17 Nov 2022 15:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58660] [PATCH v2 1/3] etc: teams: Add 'show' subcommand. References: <20221020132140.1546684-1-zimon.toutoune@gmail.com> In-Reply-To: <20221020132140.1546684-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 20:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58660 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58660@debbugs.gnu.org Cc: othacehe@gnu.org, zimoun Received: via spool by 58660-submit@debbugs.gnu.org id=B58660.166871692613318 (code B ref 58660); Thu, 17 Nov 2022 20:29:02 +0000 Received: (at 58660) by debbugs.gnu.org; 17 Nov 2022 20:28:46 +0000 Received: from localhost ([127.0.0.1]:34512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovlV8-0003Sd-C0 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 15:28:46 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:38504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovlUy-0003Rp-0P for 58660@debbugs.gnu.org; Thu, 17 Nov 2022 15:28:39 -0500 Received: by mail-wr1-f45.google.com with SMTP id a14so5789826wru.5 for <58660@debbugs.gnu.org>; Thu, 17 Nov 2022 12:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1TBGtpEon9i47Yc+e1ZYKnqP6pBoVIwId79PKdM859A=; b=Mbj+1wprKrRFgwwe2Cki6gTRi6PK+qIWdWQ5ECl8T6iWBt3nLvdN1mSNMqMgoAbpUr +NUGSzDiK6rfLTh0Zz0Wt0FSb2XU749avqnvlCCph3y1eLK48lHc6atFvAlX8SEQV2Ul EMBZjtnzISci52rasMh4ZBbt7c9NIgbIGYBrNMxjD2zKGtNFKp0GORRNVVPpir90gurH NSxWHyCIbt+OgXUn/O9y3TXV+mJPL8urc5CjYRSlHCxzzhs5EdCwJIXQUGwTusSPxGQ/ CMzIbCJY+0+cMugR8XpeltWeiVKHopj4Nus4lFEKxbfyXa01SD+BpvkrL+InUrVjoG4J L56w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1TBGtpEon9i47Yc+e1ZYKnqP6pBoVIwId79PKdM859A=; b=UEPRoxOOgaQEwS6m7yMQbvJiSBYCY3a/VAct5jb4G/HMFes8WezpckwEvodOQ/8G/E dh1qcNJUADbYr3podh4uC4q/lkkExOI/MzpetcwIQLW7ttlolFB+b1j3bjVDzgzRSo6w npQPV2lhlkl0ZIwafr/aqFXPxUsZbxkotQ2S8WNSreEpXSXpLmI5Bpnti1Y+OISa7I2C g8hes5l3OFvwS3YpqRr0WCF6PtrJtXbyXPB4N5lfZdHjJaOh++ZAvkssX7u4kL1ttp0W qjLF2FxMCZHnnAQgOjGFBuFbJGuS6sS4NEhtqfV6oqmpNXArFbHItnbw8CYf5yFvV8EG LY/A== X-Gm-Message-State: ANoB5plnV6kVN48Cyp4rzEjLQPI5YI+fZWViMLcCvng/P6Xl52tzawjU b+2KrdL0nn2Ltwi8N19ngGvLWZnMDg4= X-Google-Smtp-Source: AA0mqf4QUkpdx4sdL6chZHUqYVvRhOlSzhF+4rwlhNX6ZjWTkeqB/Axr7iMh71LkSdL+xzq2VqyTug== X-Received: by 2002:a5d:4c4a:0:b0:236:6101:7b7d with SMTP id n10-20020a5d4c4a000000b0023661017b7dmr2453282wrt.484.1668716908964; Thu, 17 Nov 2022 12:28:28 -0800 (PST) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id p6-20020a1c5446000000b003b47e75b401sm6539516wmi.37.2022.11.17.12.28.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 12:28:28 -0800 (PST) From: zimoun Date: Thu, 17 Nov 2022 21:28:18 +0100 Message-Id: <20221117202820.2054593-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668716988; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=e11i31/EPu1YT2uP8cA0w6EG2nMjq6XymBC25exU5Ug=; b=ay5lj4/PTe8PGk0JGx6EoSO0BIGIJQpkKsMCQbjcMUkW77VEieWbEnP9tsIpTzFO0J3HQM 89Ebvtj5JCtOenDvMmMQCPE5VbOdSAqWTxXEIjvlXhmFVCVJp2Um4Bo3zgTxf+6CnORURH a4IvHh+Mv7ZSmiJRrljY5BoKnOBTqc2aGCxBn6v0RURLx9E2MNVeeLTxY8PBGwmGywLsxB C67Jjy/d1zOtt0Qb7mshgN53U+FzS599iC+OfHIh/vFC4kZiECM5btbA65zBq+4mKkXx/D GG+tTqLPoRC9gedmxaT7u4ipvz2KESwKPhMAiPaIFddjUK0YDxSExLLbCJ6GSA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668716988; a=rsa-sha256; cv=none; b=TmO6ONfe2Y0PFb8mz9bYo9IkAjjaiEsvcWBWXNb1r6BTK4zZ2uyjRQ0Ukmruo7Gtwx3HWi yszWIhZRQtOYalo3uWejNabJcitt0UEl1DulK3CQpvmV4iH9Tfr80sTttMps0qIBWYnciJ OltT4RLhBQHbhxE2A0ANWbMtewbWk0W1cQ86gTR5EQA1zRtAjlT5tvKObcAYxGqOWYt79F 9WE6XCzTarmMbkI9n0JCSGQ8QY2FJYQqc6g7PEGk9WvlxxOu0hL6rrxu1if00U00mmBqBF 2ztiOJRUvE/or5Vx7HfmAgSIiYhmnLKAOUmtn4qhl6OZ44+0vKICKUPw1WkRSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=Mbj+1wpr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=Mbj+1wpr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 461C13F9BD X-Spam-Score: 5.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: v1+61UlTaN86 * etc/teams.scm.in: Add 'show' subcommand. --- etc/teams.scm.in | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/etc/teams.scm.in b/etc/teams.scm.in index c458b14e3b..e4e0dc209d 100644 --- a/etc/teams.scm.in +++ b/etc/teams.scm.in @@ -5,6 +5,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022 Ricardo Wurmus ;;; Copyright © 2022 Mathieu Othacehe +;;; Copyright © 2022 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -538,7 +539,7 @@ (define port* (or port (current-output-port))) (team-members team) (lambda (m1 m2) (stringlist (lambda (key value) value) %teams) - (lambda (team1 team2) - (stringstring (team-id team1)) - (symbol->string (team-id team2))))))) + (if team-names + (map find-team team-names) + (sort + (hash-map->list (lambda (key value) value) %teams) + (lambda (team1 team2) + (stringstring (team-id team1)) + (symbol->string (team-id team2)))))))) (define (diff-revisions rev-start rev-end) @@ -611,6 +614,8 @@ (define (main . args) (lambda (team-name) (list-members (find-team team-name))) team-names)) + (("show" . team-names) + (list-teams team-names)) (anything (format (current-error-port) "Usage: etc/teams.scm [] @@ -619,6 +624,7 @@ (define (main . args) cc get git send-email flags for cc-ing cc-members cc teams related to files changed between revisions list-teams list teams and their members - list-members list members belonging to ~%")))) + list-members list members belonging to + show display properties~%")))) (apply main (cdr (command-line))) -- 2.38.1