summaryrefslogtreecommitdiff
path: root/src/lib/config.cli.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-28 09:27:56 +0300
committerPaul Buetow <paul@buetow.org>2026-06-28 09:27:56 +0300
commitea9de473e3d6788ea08ca3697722cf89b9d1d107 (patch)
treeb3a3d6d6bc1ab8bc5ca76b9574a7247da19d7bb7 /src/lib/config.cli.source.sh
parent86c354932e698d52f23e65a1dafb1b7250f4c1b9 (diff)
Extract destructive --clean path guard into config.clean-guard.source.sh
Move the safety-critical rm -rf guard (resolve_dist_dir_path and validate_clean_dist_dir, including the dangerous-path blocklist) out of config.validate.source.sh into a dedicated module so the policy that gates an unconditional rm -rf lives in one isolated place with its own test surface. This is a pure move refactor: the guard logic, the forbidden list, and the error messages are byte-identical. Register the new module in both LIB_SOURCES lists (Justfile and the src/shuriken.sh marker block) at the same position, right before config.validate.source.sh, keeping the anti-drift invariant green and regenerating bin/shuriken. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'src/lib/config.cli.source.sh')
0 files changed, 0 insertions, 0 deletions