Files
zsa_qmk_firmware/lib/python/qmk/cli/__init__.py
T

51 lines
1.1 KiB
Python
Raw Normal View History

2019-09-22 13:25:33 -07: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 13:00:56 -07:00
import sys
from milc import cli
2020-10-07 01:10:19 +01:00
from . import c2json
2019-09-22 13:25:33 -07:00
from . import cformat
from . import chibios
2020-11-05 06:18:47 +11:00
from . import clean
2019-09-22 13:25:33 -07:00
from . import compile
from . import config
from . import docs
2019-09-22 13:25:33 -07:00
from . import doctor
from . import fileformat
2019-10-04 23:38:34 -07:00
from . import flash
2020-10-25 14:48:44 -07:00
from . import generate
2019-09-22 13:25:33 -07:00
from . import hello
from . import info
from . import json2c
2020-11-07 09:56:08 -08:00
from . import lint
2019-10-07 14:32:30 -04:00
from . import list
from . import kle2json
2019-09-22 13:25:33 -07:00
from . import new
from . import pyformat
from . import pytest
2021-02-13 10:26:45 -08:00
# Supported version information
#
# Based on the OSes we support these are the minimum python version available by default.
# Last update: 2021 Jan 02
#
# Arch: 3.9
# Debian: 3.7
# Fedora 31: 3.7
# Fedora 32: 3.8
# Fedora 33: 3.9
# FreeBSD: 3.7
# Gentoo: 3.7
# macOS: 3.9 (from homebrew)
# msys2: 3.8
# Slackware: 3.7
# solus: 3.7
# void: 3.9
if sys.version_info[0] != 3 or sys.version_info[1] < 7:
cli.log.error('Your Python is too old! Please upgrade to Python 3.7 or later.')
2020-04-18 13:00:56 -07:00
exit(127)