Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuritka/golic
license generator
https://github.com/kuritka/golic
go golang license
Last synced: 24 days ago
JSON representation
license generator
- Host: GitHub
- URL: https://github.com/kuritka/golic
- Owner: kuritka
- License: mit
- Created: 2021-03-04T21:09:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-08T11:33:00.000Z (over 3 years ago)
- Last Synced: 2024-10-11T11:21:29.545Z (about 1 month ago)
- Topics: go, golang, license
- Language: Go
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# golic
license generator
```
golic inject -c="2021 SuperPower Group Limited" -l=.licignore --dry
```
![Screenshot 2021-03-08 at 11 42 52](https://user-images.githubusercontent.com/7195836/110310942-6d2f3680-8003-11eb-9540-b2e21b4f2b87.png)## Running from commandline
create `.golicignore`
```shell
# Ignore everything
*# But not these files...
!Makefile
!*.go# ...even if they are in subdirectories
!*/
````
And run **GOLIC**
```shell
GO111MODULE=on go get github.com/kuritka/[email protected]
$(GOBIN)/golic inject -c="2021 MyCompany Group Limited" -l=.golicignore
```## Usage
```shell
Usage:
inject [flags]Flags:
-u, --config-url string config URL (default "https://raw.githubusercontent.com/kuritka/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
-t, --template string license key (default "apache2")Global Flags:
-v, --verbose verbose output
```## Configuration
For more details see: [default configuration](https://raw.githubusercontent.com/kuritka/golic/main/config.yaml).
Use `-u` flag to run against custom configuration or create PR.