license generator
golic inject -c="2021 SuperPower Group Limited" -l=.licignore --dry
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:
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
For more details see: default configuration.
Use -u
flag to run against custom configuration or create PR.