doctor.py 367 B

12345678910111213
  1. # Copyright 2023 Nick Brassel (@tzarc)
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. from milc import cli
  4. from qmk.constants import QMK_FIRMWARE, HAS_QMK_USERSPACE
  5. from qmk.cli.doctor.main import userspace_tests
  6. @cli.subcommand('Checks userspace configuration.')
  7. def userspace_doctor(cli):
  8. userspace_tests(QMK_FIRMWARE)
  9. return 0 if HAS_QMK_USERSPACE else 1