aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-02-02 15:31:42 +1100
committerGitHub <noreply@github.com>2022-02-01 20:31:42 -0800
commitc9f88d7c67e00b3689fd4afd7630bc7fcd5b7ed4 (patch)
tree1d6e8eb51b87d8af9829c331a925c9a7f60d2205 /lib/python/qmk/cli
parent16ad8c0159383b0ecee7c97119e3d61f1038f56a (diff)
downloadqmk_firmware-c9f88d7c67e00b3689fd4afd7630bc7fcd5b7ed4.tar.gz
qmk_firmware-c9f88d7c67e00b3689fd4afd7630bc7fcd5b7ed4.zip
`qmk doctor`: display qmk_firmware version tag (#16155)
Diffstat (limited to 'lib/python/qmk/cli')
-rwxr-xr-xlib/python/qmk/cli/doctor/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/doctor/main.py b/lib/python/qmk/cli/doctor/main.py
index ed20f46d3..2e5e221e8 100755
--- a/lib/python/qmk/cli/doctor/main.py
+++ b/lib/python/qmk/cli/doctor/main.py
@@ -11,7 +11,7 @@ from milc.questions import yesno
11from qmk import submodules 11from qmk import submodules
12from qmk.constants import QMK_FIRMWARE, QMK_FIRMWARE_UPSTREAM 12from qmk.constants import QMK_FIRMWARE, QMK_FIRMWARE_UPSTREAM
13from .check import CheckStatus, check_binaries, check_binary_versions, check_submodules 13from .check import CheckStatus, check_binaries, check_binary_versions, check_submodules
14from qmk.commands import git_check_repo, git_get_branch, git_is_dirty, git_get_remotes, git_check_deviation, in_virtualenv 14from qmk.commands import git_check_repo, git_get_branch, git_get_tag, git_is_dirty, git_get_remotes, git_check_deviation, in_virtualenv
15 15
16 16
17def os_tests(): 17def os_tests():
@@ -47,6 +47,11 @@ def git_tests():
47 git_branch = git_get_branch() 47 git_branch = git_get_branch()
48 if git_branch: 48 if git_branch:
49 cli.log.info('Git branch: %s', git_branch) 49 cli.log.info('Git branch: %s', git_branch)
50
51 repo_version = git_get_tag()
52 if repo_version:
53 cli.log.info('Repo version: %s', repo_version)
54
50 git_dirty = git_is_dirty() 55 git_dirty = git_is_dirty()
51 if git_dirty: 56 if git_dirty:
52 cli.log.warning('{fg_yellow}Git has unstashed/uncommitted changes.') 57 cli.log.warning('{fg_yellow}Git has unstashed/uncommitted changes.')