Add return code to qmk userspace-doctor (#25775)
This commit is contained in:
parent
c68e4dec10
commit
8ec3de0f92
1 changed files with 3 additions and 1 deletions
|
|
@ -2,10 +2,12 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
from milc import cli
|
||||
|
||||
from qmk.constants import QMK_FIRMWARE
|
||||
from qmk.constants import QMK_FIRMWARE, HAS_QMK_USERSPACE
|
||||
from qmk.cli.doctor.main import userspace_tests
|
||||
|
||||
|
||||
@cli.subcommand('Checks userspace configuration.')
|
||||
def userspace_doctor(cli):
|
||||
userspace_tests(QMK_FIRMWARE)
|
||||
|
||||
return 0 if HAS_QMK_USERSPACE else 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue