diff options
Diffstat (limited to 'lib/python/qmk/cli/doctor.py')
-rwxr-xr-x | lib/python/qmk/cli/doctor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py index 5a713b20f..3474422a8 100755 --- a/lib/python/qmk/cli/doctor.py +++ b/lib/python/qmk/cli/doctor.py | |||
@@ -11,8 +11,8 @@ from glob import glob | |||
11 | from milc import cli | 11 | from milc import cli |
12 | 12 | ||
13 | 13 | ||
14 | @cli.entrypoint('Basic QMK environment checks') | 14 | @cli.subcommand('Basic QMK environment checks') |
15 | def main(cli): | 15 | def doctor(cli): |
16 | """Basic QMK environment checks. | 16 | """Basic QMK environment checks. |
17 | 17 | ||
18 | This is currently very simple, it just checks that all the expected binaries are on your system. | 18 | This is currently very simple, it just checks that all the expected binaries are on your system. |
@@ -36,6 +36,7 @@ def main(cli): | |||
36 | else: | 36 | else: |
37 | try: | 37 | try: |
38 | subprocess.run([binary, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=5, check=True) | 38 | subprocess.run([binary, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=5, check=True) |
39 | cli.log.info('Found {fg_cyan}%s', binary) | ||
39 | except subprocess.CalledProcessError: | 40 | except subprocess.CalledProcessError: |
40 | cli.log.error("{fg_red}Can't run `%s --version`", binary) | 41 | cli.log.error("{fg_red}Can't run `%s --version`", binary) |
41 | ok = False | 42 | ok = False |