Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 811 Bytes

readme.md

File metadata and controls

32 lines (20 loc) · 811 Bytes

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.