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.

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

4 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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages