Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mislav/gh-license
GitHub CLI extension to add a license to the current project
https://github.com/mislav/gh-license
gh-extension
Last synced: about 2 months ago
JSON representation
GitHub CLI extension to add a license to the current project
- Host: GitHub
- URL: https://github.com/mislav/gh-license
- Owner: mislav
- License: unlicense
- Created: 2022-02-09T19:11:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T17:23:03.000Z (almost 3 years ago)
- Last Synced: 2024-12-24T00:12:45.546Z (about 2 months ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 27
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh license
Add a LICENSE file to the current directory.
Usage:
```sh
$ gh extension install mislav/gh-license# list available licenses
$ gh license# add a specific license
$ gh license bsd-3-clause
```The result will be a LICENSE file in the current directory:
```
$ head LICENSE
BSD 3-Clause LicenseCopyright (c) 2022, Mislav Marohnić
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
```You can also choose a license interactively through the web interface:
```
gh license --web
```