Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azu/license-generator
A Command line tool that generate `LICENSE` file.
https://github.com/azu/license-generator
cli generator license rust
Last synced: 4 days ago
JSON representation
A Command line tool that generate `LICENSE` file.
- Host: GitHub
- URL: https://github.com/azu/license-generator
- Owner: azu
- License: mit
- Created: 2019-01-11T16:01:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-27T12:42:40.000Z (11 months ago)
- Last Synced: 2024-05-03T01:53:46.629Z (8 months ago)
- Topics: cli, generator, license, rust
- Language: Rust
- Homepage:
- Size: 81.1 KB
- Stars: 127
- Watchers: 5
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# license-generator [![Test](https://github.com/azu/license-generator/actions/workflows/test.yml/badge.svg)](https://github.com/azu/license-generator/actions/workflows/test.yml)
A Command line tool that generates `LICENSE` file.
## Installation
Install with [Cargo](https://crates.io/):
cargo install license-generator
## Usage
$ license-generator --author [LICENSE_TYPE]
[LICENSE_TYPE]:
- AGPL
- Apache
- CC-BY
- CC-BY-NC
- CC-BY-NC-SA
- CC-BY-SA
- CC0
- GPL
- LGPL
- MIT
- MPL
- UnlicenseOptions:
-l, --list lists the available licenses
--author input author name. Default: `GitName `
--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:
- [AGPL-3.0](http://www.gnu.org/licenses/agpl-3.0)
- [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
- [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)
- [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/)
- [CC-BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
- [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)
- [CC0-1.0](http://creativecommons.org/publicdomain/zero/1.0/)
- [GPL-3.0](http://www.gnu.org/licenses/gpl-3.0)
- [LGPL-3.0](http://www.gnu.org/licenses/lgpl-3.0)
- [MIT](https://opensource.org/licenses/MIT)
- [MPL-2.0](https://www.mozilla.org/en-US/MPL/2.0/)
- [Unlicense](http://unlicense.org/)## 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](https://github.com/sunng87/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