Skip to content

earik87/copy-righter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy-righter

Go

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.

Installation

  1. Clone the repository:

    git clone https://github.com/earik87/copy-righter.git
  2. Navigate to the project directory:

    cd copy-righter
  3. Build the CLI tool:

    go install

Usage

Basic Command

copy-righter --copyright="© 2025 Example Corp. All rights reserved." <file_or_directory>

Examples

  1. Add copyright to a single file:

    copy-righter --copyright="© 2025 Example Corp. All rights reserved." main.go
  2. Add copyright to all files in a directory:

    copy-righter --copyright="© 2025 Example Corp. All rights reserved." ./src

Supported File Types

  • .go

About

A cli tool which adds/updates copyright statement in go files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages