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 @@ -365,3 +365,21 @@ echo ""
365365echo "LEARN : "
366366echo " just tour Guided project tour"
367367echo " just default List all recipes"
368+
369+
370+ # Print the current CRG grade (reads from READINESS.md '**Current Grade:** X' line)
371+ crg-grade :
372+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
373+ [ -z " $$grade" ] && grade=" X" ; \
374+ echo " $$grade"
375+
376+ # Generate a shields.io badge markdown for the current CRG grade
377+ # Looks for '**Current Grade:** X' in READINESS.md; falls back to X
378+ crg-badge :
379+ @ grade=$$(grep -oP ' (?<=\*\*Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
380+ [ -z " $$grade" ] && grade=" X" ; \
381+ case " $$grade" in \
382+ A) color=" brightgreen" ;; B) color=" green" ;; C) color=" yellow" ;; \
383+ D) color=" orange" ;; E) color=" red" ;; F) color=" critical" ;; \
384+ *) color=" lightgrey" ;; esac; \
385+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
You can’t perform that action at this time.
0 commit comments