File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -76,3 +76,21 @@ help-me:
7676 @ echo " https://github.com/hyperpolymath/modshells/issues/new"
7777 @ echo " "
7878 @ echo " Include the output of 'just doctor' in your report."
79+
80+
81+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
82+ crg-grade :
83+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
84+ [ -z " $$grade" ] && grade=" X" ; \
85+ echo " $$grade"
86+
87+ # Generate a shields.io badge markdown for the current CRG grade
88+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
89+ crg-badge :
90+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
91+ [ -z " $$grade" ] && grade=" X" ; \
92+ case " $$grade" in \
93+ A) color=" brightgreen" ;; B) color=" green" ;; C) color=" yellow" ;; \
94+ D) color=" orange" ;; E) color=" red" ;; F) color=" critical" ;; \
95+ *) color=" lightgrey" ;; esac; \
96+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments