license-generator

Crates.iolicense-generator
lib.rslicense-generator
version1.3.0
sourcesrc
created_at2019-01-11 16:21:52.418646
updated_at2024-09-06 01:12:08.658005
descriptionA Command line tool that generate `LICENSE` file.
homepage
repositoryhttps://github.com/azu/license-generator
max_upload_size
id107937
size248,553
azu (azu)

documentation

README

license-generator Test

A Command line tool that generates LICENSE file.

Installation

Install with Cargo:

cargo install license-generator

Usage

$ license-generator --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:
  -l, --list lists the available licenses
  --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

Supported Licenses

This CLI supports the following licenses:

Examples

Generate MIT LICENSE

license-generator MIT

Output to stdout

license-generator MIT --output /dev/stdout

Multi LICENSE

license-generator MIT Apache
# generates `LICENSE-MIT` and `LICENSE-APACHE`

Specify year and author

license-generator MIT --author azu --year 2024

Tests

cargo test

Releases

Use cargo-release.

cargo release --execute --publish {patch,minor,major}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © azu

Commit count: 63

cargo fmt