3 releases

0.2.0 Jun 19, 2022
0.1.8 Jun 19, 2022
0.1.3 Jun 19, 2022
0.1.1 Jun 19, 2022
0.1.0 Jun 17, 2022

#14 in #author

blessing

10KB
101 lines

blessing

crates.io Documentation Build Status

mit is an MIT{,-0} license generator

$ mit --help
mit 0.1.5
btwiuse <btwiuse@gmail.com>
generate MIT{,-0} license

USAGE:
    mit [OPTIONS] --author <AUTHOR>

OPTIONS:
    -0, --zero               Use MIT-0 variant
    -a, --author <AUTHOR>    Set author name
    -h, --help               Print help information
    -V, --version            Print version information
    -y, --year <YEAR>        Set year

Install

$ cargo install mit

Usage

Print license content

$ mit --author btwiuse
MIT License

Copyright (c) 2022 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.

Use MIT-0 variant

$ mit -0 --author btwiuse
MIT No Attribution

Copyright (c) 2022 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.

Save to LICENSE file

$ mit --author btwiuse > LICENSE

Dependencies

~6.5MB
~125K SLoC