A cargo subcommand that generates LICENSE
files.
This is a fork of Azo's license-generator
.
I've only tweaked some minor things. The reason for this fork is because I
wanted to have the command be namespaced under cargo
rather than standing on
its own. All credit to them for creating the original project.
Install with Cargo:
~~~console cargo install cargo-generate-license ~~~
~~~
$ cargo generate-license --author
Options:
--author input author name. Default: GitName <GitEmail>
--project input project name that is required by some license
--year input license year
--output path to the output. Default: ./LICENSE
~~~
This CLI supports the following licenses:
~~~ cargo generate-license MIT --author "azu" ~~~
~~~ cargo generate-license MIT --output /dev/stdout --author "azu" ~~~
Author can be retrieved from git config
.
cargo generate-license MIT Apache
# output
# LICENSE-MIT and LICENSE-APACHE
cargo test
Use cargo-release.
cargo release --no-dev-version {patch,minor,major} --execute
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu, D. Scott Boggs, 2023