diff options
| author | Zach White <skullydazed@gmail.com> | 2021-03-24 09:26:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 09:26:38 -0700 |
| commit | 299008be36076343edadb7a36bf2fff820425ad1 (patch) | |
| tree | d47d2fddc54b329b4ddb3128ef070b4cdba776a4 /lib/python/qmk/cli/c2json.py | |
| parent | 723d9af04d610c4a2fcb8fcf39e8420c71ed4df0 (diff) | |
Add support for qmk_configurator style aliases (#11954)
* Add support for qmk_configurator style aliases
* add the keyboard aliases to the api data
* add support for a keyboard metadata file
* make flake8 happy
Diffstat (limited to 'lib/python/qmk/cli/c2json.py')
| -rw-r--r-- | lib/python/qmk/cli/c2json.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/c2json.py b/lib/python/qmk/cli/c2json.py index b9d55ebdbc..a97e212223 100644 --- a/lib/python/qmk/cli/c2json.py +++ b/lib/python/qmk/cli/c2json.py | |||
| @@ -7,12 +7,13 @@ from milc import cli | |||
| 7 | import qmk.keymap | 7 | import qmk.keymap |
| 8 | import qmk.path | 8 | import qmk.path |
| 9 | from qmk.info_json_encoder import InfoJSONEncoder | 9 | from qmk.info_json_encoder import InfoJSONEncoder |
| 10 | from qmk.keyboard import keyboard_folder | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | @cli.argument('--no-cpp', arg_only=True, action='store_false', help='Do not use \'cpp\' on keymap.c') | 13 | @cli.argument('--no-cpp', arg_only=True, action='store_false', help='Do not use \'cpp\' on keymap.c') |
| 13 | @cli.argument('-o', '--output', arg_only=True, type=qmk.path.normpath, help='File to write to') | 14 | @cli.argument('-o', '--output', arg_only=True, type=qmk.path.normpath, help='File to write to') |
| 14 | @cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages") | 15 | @cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages") |
| 15 | @cli.argument('-kb', '--keyboard', arg_only=True, required=True, help='The keyboard\'s name') | 16 | @cli.argument('-kb', '--keyboard', arg_only=True, type=keyboard_folder, required=True, help='The keyboard\'s name') |
| 16 | @cli.argument('-km', '--keymap', arg_only=True, required=True, help='The keymap\'s name') | 17 | @cli.argument('-km', '--keymap', arg_only=True, required=True, help='The keymap\'s name') |
| 17 | @cli.argument('filename', arg_only=True, help='keymap.c file') | 18 | @cli.argument('filename', arg_only=True, help='keymap.c file') |
| 18 | @cli.subcommand('Creates a keymap.json from a keymap.c file.') | 19 | @cli.subcommand('Creates a keymap.json from a keymap.c file.') |
