Files
zsa_qmk_firmware/lib/python/qmk/cli/json/keymap.py
T

17 lines
585 B
Python
Raw Normal View History

2019-07-15 12:14:27 -07:00
"""Generate a keymap.c from a configurator export.
"""
2020-02-17 11:42:11 -08:00
from pathlib import Path
2019-07-15 12:14:27 -07:00
from milc import cli
2020-02-17 11:42:11 -08:00
@cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to')
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
2019-09-22 13:25:33 -07:00
@cli.argument('filename', arg_only=True, help='Configurator JSON file')
2019-10-28 18:24:36 -07:00
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.')
2019-09-22 13:25:33 -07:00
def json_keymap(cli):
"""Renamed to `qmk json2c`.
2019-07-15 12:14:27 -07:00
"""
cli.log.error('This command has been renamed to `qmk json2c`.')
exit(1)