diff options
| author | Joel Challis <git@zvecr.com> | 2025-11-11 21:59:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-12 08:59:06 +1100 |
| commit | 8ec3de0f92219ee783425f406ff188597ec5e8c6 (patch) | |
| tree | 583ecf62db01325bc7f20c269c81952af4f208b0 /lib/python | |
| parent | c68e4dec10db07f16f6d2b5dd883bbcfc09cde25 (diff) | |
Add return code to `qmk userspace-doctor` (#25775)
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/qmk/cli/userspace/doctor.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/userspace/doctor.py b/lib/python/qmk/cli/userspace/doctor.py index 2b7e29aa7e..7c016e5a2f 100644 --- a/lib/python/qmk/cli/userspace/doctor.py +++ b/lib/python/qmk/cli/userspace/doctor.py | |||
| @@ -2,10 +2,12 @@ | |||
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | 2 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | from milc import cli | 3 | from milc import cli |
| 4 | 4 | ||
| 5 | from qmk.constants import QMK_FIRMWARE | 5 | from qmk.constants import QMK_FIRMWARE, HAS_QMK_USERSPACE |
| 6 | from qmk.cli.doctor.main import userspace_tests | 6 | from qmk.cli.doctor.main import userspace_tests |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | @cli.subcommand('Checks userspace configuration.') | 9 | @cli.subcommand('Checks userspace configuration.') |
| 10 | def userspace_doctor(cli): | 10 | def userspace_doctor(cli): |
| 11 | userspace_tests(QMK_FIRMWARE) | 11 | userspace_tests(QMK_FIRMWARE) |
| 12 | |||
| 13 | return 0 if HAS_QMK_USERSPACE else 1 | ||
