Skip to content

A command-line utility in Go that adds a file's relative path as a comment at the top of each file in a directory.

License

Notifications You must be signed in to change notification settings

kpechenenko/addpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

addpath

A command-line utility in Go that adds a file's relative path as a comment at the top of each file in a directory.

Usage

  1. Build the executable:
go build -o addpathutil
  1. Run
./addpathutil --dir=/path/to/your/project --ignoreFile=addpathignore

Command-Line Flags

  • --commentTemplate describes format of adding comment with path. Must contain first %s for comment symbol and second %s for relative path. (default "%s %s")
  • --dir string directory to process files in (default ".")
  • --ignoreFile string path to file with list of files to ignore in .gitignore format

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

A command-line utility in Go that adds a file's relative path as a comment at the top of each file in a directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages