11 个版本
0.1.8 | 2023 年 6 月 28 日 |
---|---|
0.1.7 | 2023 年 3 月 25 日 |
0.1.6 | 2022 年 4 月 3 日 |
0.1.4 | 2022 年 3 月 9 日 |
2024 在 命令行工具 中
每月下载量 41 次
9KB
104 行
mit
mit 是一个 MIT{,-0} 许可证生成器
$ mit --help
generate MIT{,-0} license
Usage: mit [OPTIONS] --author <AUTHOR>
Options:
-0, --zero Use MIT-0 variant
-y, --year <YEAR> Set year [optional]
-a, --author <AUTHOR> Set author name
-h, --help Print help
-V, --version Print version
安装
$ cargo install mit
用法
打印许可证内容
$ mit --author btwiuse
MIT License
Copyright (c) btwiuse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
使用 MIT-0 变体
$ mit -0 --author btwiuse
MIT No Attribution
Copyright (c) btwiuse
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
保存到 LICENSE 文件
$ mit --author btwiuse > LICENSE
依赖关系
~5MB
~97K SLoC