File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -553,3 +553,21 @@ echo ""
553553echo "LEARN:"
554554echo " just tour Guided project tour"
555555echo " just default List all recipes"
556+
557+
558+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
559+ crg-grade:
560+ @grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
561+ [ -z "$$grade" ] && grade="X"; \
562+ echo "$$grade"
563+
564+ # Generate a shields.io badge markdown for the current CRG grade
565+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
566+ crg-badge:
567+ @grade=$$(grep -oP '(?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2>/dev/null | head -1); \
568+ [ -z "$$grade" ] && grade="X"; \
569+ case "$$grade" in \
570+ A) color="brightgreen" ;; B) color="green" ;; C) color="yellow" ;; \
571+ D) color="orange" ;; E) color="red" ;; F) color="critical" ;; \
572+ *) color="lightgrey" ;; esac; \
573+ echo "[](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments