Skip to content

kuritka/golic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golic

license generator

golic inject -c="2021 SuperPower Group Limited" -l=.licignore --dry

Screenshot 2021-03-08 at 11 42 52

Running from commandline

create .golicignore

# Ignore everything
*

# But not these files...
!Makefile
!*.go

# ...even if they are in subdirectories
!*/

And run GOLIC

GO111MODULE=on go get github.com/kuritka/[email protected]
$(GOBIN)/golic inject -c="2021 MyCompany Group Limited" -l=.golicignore

Usage

Usage:
   inject [flags]

Flags:
  -u, --config-url string   config URL (default "https://raw.githubusercontent.com/kuritka/golic/main/config.yaml")
  -c, --copyright string    company initials entered into license (default "2021 MyCompany")
  -d, --dry                 dry run
  -h, --help                help for inject
  -l, --licignore string    .licignore path
  -t, --template string     license key (default "apache2")

Global Flags:
  -v, --verbose   verbose output

Configuration

For more details see: default configuration. Use -u flag to run against custom configuration or create PR.