File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1393,3 +1393,21 @@ help-me:
13931393 echo " docs/ARCHITECTURE.md Architecture overview"
13941394 echo " QUICKSTART-USER.adoc Quick start for users"
13951395 echo " .machine_readable/STATE.a2ml Current project state"
1396+
1397+
1398+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
1399+ crg-grade :
1400+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
1401+ [ -z " $$grade" ] && grade=" X" ; \
1402+ echo " $$grade"
1403+
1404+ # Generate a shields.io badge markdown for the current CRG grade
1405+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
1406+ crg-badge :
1407+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
1408+ [ -z " $$grade" ] && grade=" X" ; \
1409+ case " $$grade" in \
1410+ A) color=" brightgreen" ;; B) color=" green" ;; C) color=" yellow" ;; \
1411+ D) color=" orange" ;; E) color=" red" ;; F) color=" critical" ;; \
1412+ *) color=" lightgrey" ;; esac; \
1413+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments