Post-AI header injector. Ensures Unlicense — cochranblock.org and Contributors: ... in source files.
# From workspace root: update headers in oakilydokily
cargo run -p header-writer -- oakilydokily
# Dry run (see what would change)
cargo run -p header-writer -- --dry-run oakilydokily cochranblock approuter
# Multiple dirs
cargo run -p header-writer -- oakilydokily cochranblock approuter- Pre-AI: Before AI starts, run to ensure headers are current (AI sees correct contributor context)
- Post-AI: After AI generates or edits files, run to fix any files created without headers
- CI: Optional step to enforce header consistency
- New contributor: Update config, run across workspace
Optional HEADER_WRITER_CONFIG env or --config pointing to a file with:
CONTRIBUTORS="mattbusel (XFactor), GotEmCoach, KOVA, ..."
If unset, uses built-in default.
.rs—// Unlicense ...and// Contributors: ....toml—# Unlicense ...and# Contributors: ....md—<!-- Unlicense ... -->and<!-- Contributors: ... -->.sh—# Unlicense ...and# Contributors: ...
Skips: target/, node_modules/, vendor/, dotfiles.