ltag

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL