Skip to content

AbsaOSS/golic

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c1776ba Â· Mar 9, 2021

History

2 Commits
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021

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 .licignore

# Ignore everything
*

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

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

And run GOLIC

GO111MODULE=on go get github.com/AbsaOSS/golic@v0.1.0
$(GOBIN)/golic inject -c="2021 MyCompany Group Limited" -l=.licignore

Usage

Usage:
   inject [flags]

Flags:
  -u, --config-url string   config URL (default "https://raw.githubusercontent.com/AbsaOSS/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.