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.
- Build the executable:
go build -o addpathutil
- Run
./addpathutil --dir=/path/to/your/project --ignoreFile=addpathignore
- --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