Skip to content

AbsaOSS/golic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3e5310f Â· Mar 16, 2021

History

5 Commits
Mar 16, 2021
Mar 15, 2021
Mar 16, 2021
Mar 15, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 9, 2021
Mar 16, 2021
Mar 16, 2021
Mar 16, 2021
Mar 15, 2021
Mar 15, 2021
Mar 15, 2021

Repository files navigation

golic

license management tool, injecting licenses into source code

golic inject -c="2021 MyCompany ltd." --dry

Screenshot 2021-03-08 at 11 42 52

Running from commandline

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

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

Configuration

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