Crates.io | cargo-generate-license |
lib.rs | cargo-generate-license |
version | 1.0.0 |
source | src |
created_at | 2023-02-26 19:32:46.645877 |
updated_at | 2023-02-26 19:32:46.645877 |
description | A cargo subcommand that generates `LICENSE` files. |
homepage | |
repository | https://github.com/dscottboggs/cargo-license-generator |
max_upload_size | |
id | 795424 |
size | 218,280 |
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:
cargo install cargo-generate-license
$ cargo generate-license --author <name> [LICENSE_TYPE]
[LICENSE_TYPE]:
- AGPL
- Apache
- CC-BY
- CC-BY-NC
- CC-BY-NC-SA
- CC-BY-SA
- CC0
- GPL
- LGPL
- MIT
- MPL
- Unlicense
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