licensor: add page (#8204)

* licensor: add page

* licensor: use mnemonic for "placeholder"

Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>

* licensor: place quotation marks outside of curly braces

Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>

Co-authored-by: Emily Grace Seville <emilyseville7cf@gmail.com>
pull/1/head
Ethan Kinnear 2022-07-20 10:27:18 -05:00 committed by GitHub
parent a7e8269783
commit efd2a87d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
pages/common/licensor.md Normal file
View File

@ -0,0 +1,28 @@
# licensor
> Write licenses to stdout.
> More information: <https://github.com/raftario/licensor>.
- Write the MIT license to a file named `LICENSE`:
`licensor {{MIT}} > {{LICENSE}}`
- Write the MIT license with a [p]laceholder copyright notice to a file named `LICENSE`:
`licensor -p {{MIT}} > {{LICENSE}}`
- Specify a copyright holder named Bobby Tables:
`licensor {{MIT}} {{"Bobby Tables"}} > {{LICENSE}}`
- Specify licence exceptions with a WITH expression:
`licensor "{{Apache-2.0 WITH LLVM-exception}}" > {{LICENSE}}`
- List all available licenses:
`licensor --licenses`
- List all available exceptions:
`licensor --exceptions`