(address . guix-patches@gnu.org)(name . zimoun)(address . zimon.toutoune@gmail.com)
Hi,
The first patch displays the regexp pattern and sort the files. Compare,
Toggle snippet (10 lines)
$ etc/teams.scm list-teams | recsel -n 21
id: java
name: Java and Maven team
description: The JDK and JRE, the Maven build system, Java packages, the ant-build-system, and the maven-build-system.
scope: #<regexp 7f61135ef3c0> #<regexp 7f61135ef380> "guix/build/ant-build-system.scm" "guix/build/java-utils.scm" "guix/build/maven-build-system.scm" #<regexp 7f61135ef340> "guix/build-system/ant.scm" "guix/build-system/maven.scm"
members:
+ Julien Lepiller <julien@lepiller.eu>
+ Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
with
Toggle snippet (9 lines)
id: java
name: Java and Maven team
description: The JDK and JRE, the Maven build system, Java packages, the ant-build-system, and the maven-build-system.
scope: "^gnu/packages/java(-.+|)\\.scm$" "^gnu/packages/maven(-.+|)\\.scm$" "^guix/build/maven/" "guix/build-system/ant.scm" "guix/build-system/maven.scm" "guix/build/ant-build-system.scm" "guix/build/java-utils.scm" "guix/build/maven-build-system.scm"
members:
+ Julien Lepiller <julien@lepiller.eu>
+ Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
Maybe I miss a point about regexp but I have not found a way to access the
pattern. Hence this new <regexp*> record.
The second patch sorts the members,
Toggle snippet (11 lines)
$ etc/teams.scm list-members mentors
( <paren@disroot.org>
Christopher Baines <mail@cbaines.net>
Ludovic Courtès <ludo@gnu.org>
Mathieu Othacehe <othacehe@gnu.org>
Ricardo Wurmus <rekado@elephly.net>
Simon Tournier <zimon.toutoune@gmail.com>
jgart <jgart@dismail.de>
The third patch sorts the teams,
Toggle snippet (26 lines)
$ etc/teams.scm list-teams | recsel -Cp id
id: core
id: emacs
id: embedded-bootstrap
id: games
id: go
id: haskell
id: home
id: installer
id: java
id: julia
id: kernel
id: lisp
id: mentors
id: mozilla
id: ocaml
id: python
id: r
id: racket
id: ruby
id: rust
id: science
id: translations
Note that show a team is not super handy,
Toggle snippet (34 lines)
$ etc/teams.scm list-teams | recsel -Cp id | grep -n id
1:id: core
2:id: emacs
3:id: embedded-bootstrap
4:id: games
5:id: go
6:id: haskell
7:id: home
8:id: installer
9:id: java
10:id: julia
11:id: kernel
12:id: lisp
13:id: mentors
14:id: mozilla
15:id: ocaml
16:id: python
17:id: r
18:id: racket
19:id: ruby
20:id: rust
21:id: science
22:id: translations
$ etc/teams.scm list-teams | recsel -n 7
id: installer
name: Installer script and system installer
description: <none>
scope: "^gnu/installer(\\.scm$|/)"
members:
+ Josselin Poiret <dev@jpoiret.xyz>
+ Mathieu Othacehe <othacehe@gnu.org>
Hence the last patch, (hum, I am not convinced :-))
Toggle snippet (35 lines)
$ etc/teams.scm list-teams | recsel -Cp id
id: (0) core
id: (1) emacs
id: (2) embedded-bootstrap
id: (3) games
id: (4) go
id: (5) haskell
id: (6) home
id: (7) installer
id: (8) java
id: (9) julia
id: (10) kernel
id: (11) lisp
id: (12) mentors
id: (13) mozilla
id: (14) ocaml
id: (15) python
id: (16) r
id: (17) racket
id: (18) ruby
id: (19) rust
id: (20) science
id: (21) translations
$ etc/teams.scm list-teams | recsel -n 15
id: (15) python
name: Python team
description: Python, Python packages, the "pypi" importer, and the python-build-system.
scope: "^gnu/packages/python(-.+|)\\.scm$" "gnu/packages/django.scm" "gnu/packages/jupyter.scm" "gnu/packages/sphinx.scm" "gnu/packages/tryton.scm" "guix/build-system/python.scm" "guix/build/python-build-system.scm" "guix/import/pypi.scm" "guix/scripts/import/pypi.scm" "tests/pypi.scm"
members:
+ Lars-Dominik Braun <lars@6xq.net>
+ jgart <jgart@dismail.de>
Cheers,
simon
zimoun (4):
etc: teams: Improve scope display.
etc: teams: List members sorted by name.
etc: teams: List teams sorted by id.
etc: teams: Display an id number.
etc/teams.scm.in | 83 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 59 insertions(+), 24 deletions(-)
base-commit: 4716cea6256523a8ecf90a426d675bfb7620f3e4
--
2.36.0