add mechanisms for finding and pinging maintainers
This commit is contained in:
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)))
|
||||
Reference in New Issue
Block a user