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')
|
2019-11-12 17:08:55 -08:00
|
|
|
@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')
|
2020-03-18 18:10:04 +01:00
|
|
|
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.', hidden=True)
|
2019-09-22 13:25:33 -07:00
|
|
|
def json_keymap(cli):
|
2020-03-10 13:51:19 -07:00
|
|
|
"""Renamed to `qmk json2c`.
|
2019-07-15 12:14:27 -07:00
|
|
|
"""
|
2020-03-10 13:51:19 -07:00
|
|
|
cli.log.error('This command has been renamed to `qmk json2c`.')
|
2020-10-07 10:46:10 +11:00
|
|
|
return False
|