license

license is a simple command line tool to generate LICENSE file you want to use. It fetches one from Github API. You can also choose LICENSE like choosealicense.com/.
Demo
You can select a LICENSE from avairable list,

You can just provide key name,

If you feel difficulty to choose LICENSE, you can do it like choosealicense.com/,

Usage
To generate LICENSE file, you just provide KEY name of LICENSE you want,
$ license [option] [KEY]
To check available LICENSE file and its KEY, you can see all of them by -list option,
$ license -list
If you don't provide specific KEY, license will ask you to select one from list.
To choose LICENSE like choosealicense.com/,
$ license -choose
To see more usage, use -help option
Install
Binaries for your platform are provided, install it from Release page.
If you use OSX and homebrew for your package manager, you can use formula for this project,
$ brew tap tcnksm/license
$ brew install license
Contribution
- Fork (https://github.com/tcnksm/license/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./... command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
To install latest version of license, use go get:
$ go get -d github.com/tcnksm/license
Author
Taichi Nakashima