maintainers.py 442 B

12345678910111213141516
  1. """List the keymaps for a specific keyboard
  2. """
  3. from pathlib import Path
  4. from milc import cli
  5. from qmk.maintainers import maintainers
  6. @cli.argument("files", type=Path, arg_only=True, nargs='*', help="File to check")
  7. @cli.subcommand("List the maintainers for a file.")
  8. def list_maintainers(cli):
  9. """List the maintainers for a file.
  10. """
  11. for file in cli.args.files:
  12. cli.echo('%s: %s', file, ', '.join(maintainers(file)))