Releases: AbsaOSS/golic
Releases · AbsaOSS/golic
🟢 v0.7.2
GoLic has been extended with wildcard support.
We can generate a license one line below the first text that meets the condition defined in the rule.
For example: the following built-in rule generates a license under package.
.go:
prefix: "\n/*"
suffix: "*/"
under:
- "package *"Except * we support ? wildcard. e.g: Mi??isip* which matches with Missisippi or Middisippi123.
Of course you can override any rules or define new one. If the rule is not matched or defined, the license is generated on top of the file as a earlier.
Remove license
- remove license functionality, for further details, see: https://github.com/AbsaOSS/golic#updating-license
v0.5.0
v0.4.8 MasterConfig goes with binary
The main reason is to make current master config be dependent on actual golic version
- masterconfig as embeded resource
- remove
--config-urlor-u
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.2
Exit code
- Generates exist status 1 if any file is modified and
-x. Such functionality is required by CI.
inject -c="2021 MyCompany Group ltd." --dry -x
Indent
You can specify or completely disable indent between comment and license text.
Makefile:
prefix: "#"
indent: "***" # generates #***text
.yml:
prefix: "#" # generates # text
Dockerfile*:
prefix: "#"
indent: "NO_INDENT" # generates #text