Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ltag

Prepends project files with given template.

  • Can be used for adding licence or copyright information on src files of project.
  • Skip file, if template (as provided) already present
  • Supports Golang source files, Dockerfile, Makefiles and bash scripts
    • Take cares of compiler flags for golang source files and shebang of bash scripts.
    • Take cares of Golang Package comments too.

Install

go get github.com/kunalkushwaha/ltag

Usage

$ ltag
$ ltag --help
Usage of ltag:
  -check
        check files missing header
  -excludes string
        exclude folders (default "vendor")
  -path string
        project path (default ".")
  -t string
        template files path (default "./template")
  -v    verbose output

Example

To Apply header from ./template folder

$ ltag  -path=temp -v
Files modified :  11
temp/Dockerfile/Dockerfile
...

To Check if files missing header

$ ltag  -path=temp --check -v
temp/Dockerfile/Dockerfile
temp/Dockerfile/abc.dockerfile
temp/src/lvl1/doc.go
temp/src/lvl1/temp.go

About

Prepends project files with given template.

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages