add mechanisms for finding and pinging maintainers
This commit is contained in:
parent
ef5c6ea096
commit
c4a891d425
5 changed files with 97 additions and 0 deletions
16
lib/python/qmk/cli/list/maintainers.py
Normal file
16
lib/python/qmk/cli/list/maintainers.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""List the keymaps for a specific keyboard
|
||||
"""
|
||||
from pathlib import Path
|
||||
|
||||
from milc import cli
|
||||
|
||||
from qmk.maintainers import maintainers
|
||||
|
||||
|
||||
@cli.argument("files", type=Path, arg_only=True, nargs='*', help="File to check")
|
||||
@cli.subcommand("List the maintainers for a file.")
|
||||
def list_maintainers(cli):
|
||||
"""List the maintainers for a file.
|
||||
"""
|
||||
for file in cli.args.files:
|
||||
cli.echo('%s: %s', file, ', '.join(maintainers(file)))
|
Loading…
Add table
Add a link
Reference in a new issue