一个命令行工具,用于生成 `LICENSE` 文件。
A Command line tool that generates LICENSE file.
Install with Cargo:
cargo install license-generator$ 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
- Unlicense
Options:
-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: ./LICENSEThis CLI supports the following licenses:
license-generator MITlicense-generator MIT --output /dev/stdoutlicense-generator MIT Apache
# generates `LICENSE-MIT` and `LICENSE-APACHE`license-generator MIT --author azu --year 2024cargo testUse cargo-release.
cargo release --execute --publish {patch,minor,major}git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureMIT © azu
暂无开放 Issues,或尚未同步最近议题。