22# Owner: Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
33# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
44#
5- # RSR Standard Justfile Template
6- # https://just.systems/man/en/
7- #
8- # Copy this file to new projects and customize the placeholder values.
5+ # snifs — task runner (https://just.systems/man/en/)
96#
107# Run `just` to see all available recipes
118# Run `just cookbook` to generate docs/just-cookbook.adoc
@@ -19,10 +16,10 @@ set positional-arguments := true
1916# Re-generate with: contractile gen-just
2017import ? " contractile.just"
2118
22- # Project metadata — customize these
23- project := " rsr-template-repo "
19+ # Project metadata
20+ project := " snifs "
2421OWNER := " hyperpolymath"
25- REPO := " rsr-template-repo "
22+ REPO := " snifs "
2623version := " 0.1.0"
2724tier := " infrastructure" # 1 | 2 | infrastructure
2825
@@ -333,9 +330,10 @@ verify-template:
333330 FOUND=1
334331 fi
335332
336- # Check for template defaults still present
337- if grep -q ' rsr-template-repo' Justfile 2> /dev/null; then
338- echo " ⚠ Justfile still references 'rsr-template-repo' — update project name"
333+ # Check the project/REPO assignments have been de-branded from the template default.
334+ # Scoped to the variable assignment so the check never trips on its own grep pattern.
335+ if grep -qE ' ^(project|REPO)[[:space:]]*:=[[:space:]]*"rsr-template-repo"' Justfile 2> /dev/null; then
336+ echo " ⚠ Justfile project/REPO still set to 'rsr-template-repo' — update project name"
339337 FOUND=1
340338 fi
341339
@@ -690,18 +688,18 @@ readiness:
690688 # cargo test --test readiness -- --nocapture
691689 @ echo " Readiness tests complete!"
692690
693- # Print the current CRG grade (reads from READINESS.md '** Current Grade:* * X' line)
691+ # Print the current CRG grade (reads from READINESS.adoc '*Current Grade:* X' line)
694692crg-grade :
695- @ grade=$$ (grep -oP ' (?<=\*\* Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
696- [ -z " $$ grade" ] && grade=" X" ; \
697- echo " $$ grade"
693+ @ grade=$(grep -oP ' (?<=\*Current Grade:\* )[A-FX]' READINESS.adoc 2 >/ dev/ null | head -1); \
694+ [ -z " $grade" ] && grade=" X" ; \
695+ echo " $grade"
698696
699697# Print a shields.io CRG badge for embedding in README files
700- # Looks for '** Current Grade:** X' in READINESS.md ; falls back to X
698+ # Looks for '*Current Grade:* X' in READINESS.adoc ; falls back to X
701699crg-badge :
702- @ grade=$$ (grep -oP ' (?<=\*\* Current Grade:\*\* )[A-FX]' READINESS.md 2 >/ dev/ null | head -1); \
703- [ -z " $$ grade" ] && grade=" X" ; \
704- case " $$ grade" in \
700+ @ grade=$(grep -oP ' (?<=\*Current Grade:\* )[A-FX]' READINESS.adoc 2 >/ dev/ null | head -1); \
701+ [ -z " $grade" ] && grade=" X" ; \
702+ case " $grade" in \
705703 A) color=" brightgreen" ;; \
706704 B) color=" green" ;; \
707705 C) color=" yellow" ;; \
@@ -710,7 +708,7 @@ crg-badge:
710708 F) color=" critical" ;; \
711709 *) color=" lightgrey" ;; \
712710 esac; \
713- echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
711+ echo " [](https://github.com/hyperpolymath/standards/tree/main/component-readiness-grades)"
714712
715713# Run the full merge-requirement test suite (ALL categories)
716714# Per STANDING rule: P2P + E2E + aspect + execution + lifecycle + bench
@@ -867,7 +865,7 @@ container-init:
867865
868866 if [ ! -d "container" ]; then
869867 echo "Error: container/ directory not found."
870- echo "This repo may not have been created from rsr-template-repo ."
868+ echo "Expected a container/ directory with Containerfile + compose templates ."
871869 exit 1
872870 fi
873871
@@ -1303,7 +1301,7 @@ assail:
13031301
13041302# Self-diagnostic — checks dependencies, permissions, paths
13051303doctor:
1306- @echo "Running diagnostics for rsr-template-repo ..."
1304+ @echo "Running diagnostics for snifs ..."
13071305 @echo "Checking required tools..."
13081306 @command -v just >/dev/null 2>&1 && echo " [OK] just" || echo " [FAIL] just not found"
13091307 @command -v git >/dev/null 2>&1 && echo " [OK] git" || echo " [FAIL] git not found"
@@ -1313,7 +1311,7 @@ doctor:
13131311
13141312# Guided tour of key features
13151313tour:
1316- @echo "=== rsr-template-repo Tour ==="
1314+ @echo "=== snifs Tour ==="
13171315 @echo ""
13181316 @echo "1. Project structure:"
13191317 @ls -la
@@ -1328,12 +1326,12 @@ tour:
13281326
13291327# Open feedback channel with diagnostic context
13301328help-me:
1331- @echo "=== rsr-template-repo Help ==="
1329+ @echo "=== snifs Help ==="
13321330 @echo "Platform: $( uname -s) $( uname -m) "
13331331 @echo "Shell: $SHELL "
13341332 @echo ""
13351333 @echo "To report an issue:"
1336- @echo " https://github.com/hyperpolymath/rsr-template-repo /issues/new"
1334+ @echo " https://github.com/hyperpolymath/snifs /issues/new"
13371335 @echo ""
13381336 @echo "Include the output of 'just doctor' in your report."
13391337
0 commit comments