Skip to content

Releases: AbsaOSS/golic

🟢 v0.7.2

Choose a tag to compare

@kuritka kuritka released this 20 Dec 13:02

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

Choose a tag to compare

@kuritka kuritka released this 15 Apr 08:34
c95e145

v0.5.0

Choose a tag to compare

@kuritka kuritka released this 28 Mar 13:50
b4d5ba3
  • Fix output message formatting for CI/CD
  • simplify README.md

v0.4.8 MasterConfig goes with binary

Choose a tag to compare

@kuritka kuritka released this 19 Mar 13:08

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

Choose a tag to compare

@kuritka kuritka released this 18 Mar 15:25

Add support for asterixes in .golic.yaml

"*.go.txt"
  prefix: ""

v0.4.6

Choose a tag to compare

@kuritka kuritka released this 18 Mar 11:24
  • Remove indent configuration
  • master config contains all necessary indents in prefix

v0.4.5

Choose a tag to compare

@kuritka kuritka released this 18 Mar 08:33

version support

v0.4.4

Choose a tag to compare

@kuritka kuritka released this 17 Mar 17:10

minor printing issues

v0.4.3

Choose a tag to compare

@kuritka kuritka released this 17 Mar 17:03

color scheme

v0.4.2

Choose a tag to compare

@kuritka kuritka released this 17 Mar 15:56

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