A bare minimum cli tool to print out SPDX licenses to stdout.
licensor Unlicense
licensor 0BSD
licensor Unlicense > LICENSE
We have support for non-SPDX licenses.
The current non-SPDX licenses we support are found in the licenses
directory.
Submit a Pull Request if you wish to add more licenses.
Please keep the naming convention the same: LicenseRef-IDENTIFIER
.
Default to stdout. Make full use of the beauty of a cli.licensor Unlicense > LICENSE
- Add full CLI toolkit
licensor --help
Self-explanatorylicensor --version
Self-explanatorylicensor list
List out all possible IDs.licensor [IDENTIFIER] --header
Renders the associated header to stdout- Maybe
licensor wizard
which does a questionaire to help you figure out which license you should choose. Depends on how hard this is to do with my limited knowledge of rust 😅
- Man page. No idea how hard that'll be. Never made one of those before 😅
Add piping out to stdout support- Improve target breadth
- macOS versions from one year ago onwards
- Ubuntu LTS version
- Ubuntu versions from 1 year ago onwards
- Windows 10 versions from 1 year ago onwards
- Improve error handling
- Don't just throw when given an incorrect ID
- Maybe give suggestions based off of input if no license found, eg. giving something like
MIY
suggestsMIT
,BSD-2
suggestsBSD-2-Clause
- Provide metadata
- SPDX link to license
- FSF Free/Libre?
- OSI Approved?
- Full name?
- Permissions?
- Deprecated?
- See also
- Header
- Adding file headers.
- By adding stdout support alongside with
--header
, somesed
magic should get you this.
- By adding stdout support alongside with