Skip to content

Commit e758a64

Browse files
hyperpolymathclaude
andcommitted
build: fill Justfile stubs with real gprbuild commands
build/test/clean/fmt/lint were TODO echoes. Wired them to: build — gprbuild -P modshells.gpr -p test — gprbuild -P tests/tests.gpr -p && ./bin/test_shell_manager + smoke_test.sh clean — gprclean -P modshells.gpr fmt — gnatformat (with actionable fallback when unavailable) lint — gprbuild -gnaty -c -u (check-only -gnaty style pass) Unblocks modshells-mcp cartridge work (AI-WORK-todo §3c gate). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d1a3001 commit e758a64

1 file changed

Lines changed: 20 additions & 11 deletions

File tree

Justfile

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,34 @@ project := "modshells"
1010
default:
1111
@just --list --unsorted
1212

13-
# Build
13+
# Build the Ada executable via GNAT project file
1414
build:
15-
@echo "TODO: Add build command"
15+
gprbuild -P modshells.gpr -p
1616

17-
# Test
17+
# Build + run the Ada test suite (tests/tests.gpr → bin/test_shell_manager)
18+
# Also runs the bash smoke test if present.
1819
test:
19-
@echo "TODO: Add test command"
20+
gprbuild -P tests/tests.gpr -p
21+
./bin/test_shell_manager
22+
@if [ -x tests/smoke_test.sh ]; then tests/smoke_test.sh; fi
2023

21-
# Clean
24+
# Remove build artefacts
2225
clean:
23-
@echo "TODO: Add clean command"
26+
gprclean -P modshells.gpr
27+
@rm -rf obj bin 2>/dev/null || true
2428

25-
# Format
29+
# Format Ada sources with gnatformat when available
2630
fmt:
27-
@echo "TODO: Add format command"
28-
29-
# Lint
31+
@if command -v gnatformat >/dev/null 2>&1; then \
32+
find src -name '*.adb' -o -name '*.ads' | xargs gnatformat --inline; \
33+
else \
34+
echo "gnatformat not installed — install GNAT Pro or ALIRE toolchain"; \
35+
exit 0; \
36+
fi
37+
38+
# Lint Ada sources via -gnaty style checks (runs the compiler in check-only mode)
3039
lint:
31-
@echo "TODO: Add lint command"
40+
gprbuild -P modshells.gpr -gnaty -c -u
3241

3342
# Run panic-attacker pre-commit scan
3443
assail:

0 commit comments

Comments
 (0)