2016-01-22 02:42:34 +00:00
|
|
|
# license
|
|
|
|
|
|
|
|
> Create license files for open-source projects.
|
2019-06-05 08:55:53 +01:00
|
|
|
> More information: <https://nishanths.github.io/license>.
|
2016-01-22 02:42:34 +00:00
|
|
|
|
2022-12-04 07:53:34 +00:00
|
|
|
- Print a license to `stdout`, using the defaults (auto-detected author name, and current year):
|
2016-01-22 02:42:34 +00:00
|
|
|
|
|
|
|
`license {{license_name}}`
|
|
|
|
|
2016-09-06 08:37:04 +01:00
|
|
|
- Generate a license and save it to a file:
|
2016-01-22 02:42:34 +00:00
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`license -o {{path/to/file}} {{license_name}}`
|
2016-01-22 02:42:34 +00:00
|
|
|
|
2016-09-06 08:37:04 +01:00
|
|
|
- List all available licenses:
|
2016-01-22 02:42:34 +00:00
|
|
|
|
|
|
|
`license ls`
|
|
|
|
|
2016-09-06 08:37:04 +01:00
|
|
|
- Generate a license with custom author name and year:
|
2016-01-22 02:42:34 +00:00
|
|
|
|
2016-01-22 16:26:29 +00:00
|
|
|
`license --name {{author}} --year {{release_year}} {{license_name}}`
|