license management tool, injecting licenses into source code
golic inject -c="2021 MyCompany ltd." --dry
create .licignore
# Ignore everything
*
# But not these files...
!Dockerfile*
!Makefile
!*.go
# ...even if they are in subdirectories
!*/
Install and run GOLIC
# GO 1.16
go install github.com/AbsaOSS/golic@v0.3.1
golic inject -c="2021 MyCompany ltd."
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 (default ".licignore")
-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.