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 @@ -50,3 +50,21 @@ llm-context:
5050 @ echo " Project: formatrix-docs"
5151 @ echo " License: PMPL-1.0-or-later"
5252 @ test -f README.adoc && head -30 README.adoc || test -f README.md && head -30 README.md || echo " No README found"
53+
54+
55+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
56+ crg-grade :
57+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
58+ [ -z " $$grade" ] && grade=" X" ; \
59+ echo " $$grade"
60+
61+ # Generate a shields.io badge markdown for the current CRG grade
62+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
63+ crg-badge :
64+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
65+ [ -z " $$grade" ] && grade=" X" ; \
66+ case " $$grade" in \
67+ A) color=" brightgreen" ;; B) color=" green" ;; C) color=" yellow" ;; \
68+ D) color=" orange" ;; E) color=" red" ;; F) color=" critical" ;; \
69+ *) color=" lightgrey" ;; esac; \
70+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments