2019-09-22 20:25:33 +00:00
|
|
|
"""QMK CLI Subcommands
|
|
|
|
|
|
|
|
We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup.
|
|
|
|
"""
|
2020-04-18 20:00:56 +00:00
|
|
|
import sys
|
|
|
|
|
2020-03-13 22:47:04 +00:00
|
|
|
from milc import cli
|
|
|
|
|
2020-10-07 00:10:19 +00:00
|
|
|
from . import c2json
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import cformat
|
2020-11-28 20:02:18 +00:00
|
|
|
from . import chibios
|
2020-11-04 19:18:47 +00:00
|
|
|
from . import clean
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import compile
|
|
|
|
from . import config
|
2019-10-08 18:06:26 +00:00
|
|
|
from . import docs
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import doctor
|
2019-10-05 06:38:34 +00:00
|
|
|
from . import flash
|
2020-10-25 21:48:44 +00:00
|
|
|
from . import generate
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import hello
|
2020-05-26 20:05:41 +00:00
|
|
|
from . import info
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import json
|
2020-03-10 20:51:19 +00:00
|
|
|
from . import json2c
|
2020-11-07 17:56:08 +00:00
|
|
|
from . import lint
|
2019-10-07 18:32:30 +00:00
|
|
|
from . import list
|
2019-11-13 04:55:41 +00:00
|
|
|
from . import kle2json
|
2019-09-22 20:25:33 +00:00
|
|
|
from . import new
|
|
|
|
from . import pyformat
|
|
|
|
from . import pytest
|
2020-03-13 22:47:04 +00:00
|
|
|
|
2020-04-18 20:00:56 +00:00
|
|
|
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)
|