Skip to content

Releases: AbsaOSS/golic

🟢 v0.7.2

20 Dec 13:02
Compare
Choose a tag to compare

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

15 Apr 08:34
c95e145
Compare
Choose a tag to compare

v0.5.0

28 Mar 13:50
b4d5ba3
Compare
Choose a tag to compare
  • Fix output message formatting for CI/CD
  • simplify README.md

v0.4.8 MasterConfig goes with binary

19 Mar 13:08
Compare
Choose a tag to compare

The main reason is to make current master config be dependent on actual golic version

  • masterconfig as embeded resource
  • remove --config-url or -u

v0.4.7

18 Mar 15:25
Compare
Choose a tag to compare

Add support for asterixes in .golic.yaml

"*.go.txt"
  prefix: ""

v0.4.6

18 Mar 11:24
Compare
Choose a tag to compare
  • Remove indent configuration
  • master config contains all necessary indents in prefix

v0.4.5

18 Mar 08:33
Compare
Choose a tag to compare

version support

v0.4.4

17 Mar 17:10
Compare
Choose a tag to compare

minor printing issues

v0.4.3

17 Mar 17:03
Compare
Choose a tag to compare

color scheme

v0.4.2

17 Mar 15:56
Compare
Choose a tag to compare

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

Screenshot 2021-03-17 at 16 55 41

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