File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,3 +100,21 @@ help-me:
100100 @ echo " https://github.com/hyperpolymath/kaldor-iiot/issues/new"
101101 @ echo " "
102102 @ echo " Include the output of 'just doctor' in your report."
103+
104+
105+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
106+ crg-grade :
107+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
108+ [ -z " $$grade" ] && grade=" X" ; \
109+ echo " $$grade"
110+
111+ # Generate a shields.io badge markdown for the current CRG grade
112+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
113+ crg-badge :
114+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
115+ [ -z " $$grade" ] && grade=" X" ; \
116+ case " $$grade" in \
117+ A) color=" brightgreen" ;; B) color=" green" ;; C) color=" yellow" ;; \
118+ D) color=" orange" ;; E) color=" red" ;; F) color=" critical" ;; \
119+ *) color=" lightgrey" ;; esac; \
120+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments