Skip to content

cochranblock/header-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header-writer

Post-AI header injector. Ensures Unlicense — cochranblock.org and Contributors: ... in source files.

Usage

# 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

When to run

  • 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

Config

Optional HEADER_WRITER_CONFIG env or --config pointing to a file with:

CONTRIBUTORS="mattbusel (XFactor), GotEmCoach, KOVA, ..."

If unset, uses built-in default.

File types

  • .rs// Unlicense ... and // Contributors: ...
  • .toml# Unlicense ... and # Contributors: ...
  • .md<!-- Unlicense ... --> and <!-- Contributors: ... -->
  • .sh# Unlicense ... and # Contributors: ...

Skips: target/, node_modules/, vendor/, dotfiles.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages