mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-24 04:12:56 +00:00
0c42f91f4c
* add new qmk generate-api command, to generate a complete set of API data. * Generate api data and push it to the keyboard repo * fix typo * Apply suggestions from code review Co-authored-by: Joel Challis <git@zvecr.com> * fixup api workflow * remove file-changes-action * use a more mainstream github action * fix yaml error * Apply suggestions from code review Co-authored-by: Erovia <Erovia@users.noreply.github.com> * more uniform date handling * make flake8 happy * Update lib/python/qmk/decorators.py Co-authored-by: Erovia <Erovia@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
30 lines
692 B
Python
30 lines
692 B
Python
"""QMK CLI Subcommands
|
|
|
|
We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup.
|
|
"""
|
|
import sys
|
|
|
|
from milc import cli
|
|
|
|
from . import c2json
|
|
from . import cformat
|
|
from . import compile
|
|
from . import config
|
|
from . import docs
|
|
from . import doctor
|
|
from . import flash
|
|
from . import generate
|
|
from . import hello
|
|
from . import info
|
|
from . import json
|
|
from . import json2c
|
|
from . import list
|
|
from . import kle2json
|
|
from . import new
|
|
from . import pyformat
|
|
from . import pytest
|
|
|
|
if sys.version_info[0] != 3 or sys.version_info[1] < 6:
|
|
cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.')
|
|
exit(127)
|