20 releases (5 stable)

1.3.0 Sep 6, 2024
1.1.0 May 24, 2024
1.0.0 Feb 11, 2023
0.8.2 Feb 8, 2023
0.4.0 Jan 31, 2019

#152 in FFI

Download history 3/week @ 2025-01-27 18/week @ 2025-02-03 3/week @ 2025-02-10 23/week @ 2025-02-17 26/week @ 2025-02-24 28/week @ 2025-03-03 3/week @ 2025-03-10 19/week @ 2025-03-24 17/week @ 2025-03-31 22/week @ 2025-04-07 25/week @ 2025-04-14 4/week @ 2025-04-21 3/week @ 2025-05-05 49/week @ 2025-05-12

59 downloads per month

MIT license

60KB
329 lines

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

Dependencies

~5MB
~88K SLoC