copy-righter is a CLI tool that automatically adds or updates copyright headers and footers in source code files. It can process individual files or entire directories recursively.
-
Clone the repository:
git clone https://github.com/earik87/copy-righter.git
-
Navigate to the project directory:
cd copy-righter -
Build the CLI tool:
go install
copy-righter --copyright="© 2025 Example Corp. All rights reserved." <file_or_directory>-
Add copyright to a single file:
copy-righter --copyright="© 2025 Example Corp. All rights reserved." main.go -
Add copyright to all files in a directory:
copy-righter --copyright="© 2025 Example Corp. All rights reserved." ./src
.go