git-license
Get LICENSE from GitHub Licenses API.
Installation
go get
go get github.com/nasa9084/git-license
download binary
Download from releases page and put the binary into your PATH.
build your own
requirement: go module is enabled
$ git clone https://github.com/nasa9084/git-license.git
$ cd git-license
$ go build .
and copy or move git-license
binary into your PATH.
How to use
Basically:
$ git license --username YOUR_USER_NAME LICENSE_NAME
such as: git license --username nasa9084 mit
.
You can see the list of license names with:
$ git license -l
Show HELP
$ git license --help