mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 22:23:21 +00:00
14 lines
430 B
Python
Executable File
14 lines
430 B
Python
Executable File
"""This script generates the consolidated XAP protocol definitions.
|
|
"""
|
|
import hjson
|
|
from milc import cli
|
|
from qmk.xap.common import latest_xap_defs
|
|
|
|
|
|
@cli.subcommand('Generates the consolidated XAP protocol definitions.', hidden=False if cli.config.user.developer else True)
|
|
def xap_generate_json(cli):
|
|
"""Generates the consolidated XAP protocol definitions.
|
|
"""
|
|
defs = latest_xap_defs()
|
|
print(hjson.dumps(defs))
|