Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Options:
--filename TEXT file name [default: README.md]
--message TEXT commit message [default: update stars]
--private include private repos [default: False]
--license TEXT license file path within repo [default: ]
--version Show the version and exit.
--help Show this message and exit.
```
Expand Down Expand Up @@ -104,4 +105,4 @@ click `Run workflow` button
3. Dev & Run
```bash
poetry run starred --help
```
```
12 changes: 5 additions & 7 deletions starred/starred.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
license_ = '''
## License

[![CC0](http://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)]\
(https://creativecommons.org/publicdomain/zero/1.0/)

To the extent possible under law, [{username}](https://github.com/{username})\
has waived all copyright and related or neighboring rights to this work.
The files in this repository are licensed under the license found [here]({license}).
'''

html_escape_table = {
Expand All @@ -53,8 +49,9 @@ def html_escape(text):
@click.option('--filename', default='README.md', show_default=True, help='file name')
@click.option('--message', default='update awesome-stars, created by starred', show_default=True, help='commit message')
@click.option('--private', is_flag=True, default=False, show_default=True, help='include private repos')
@click.option('--license', default='', show_default=True, help='license file path within repo')
@click.version_option(version=VERSION, prog_name='starred')
def starred(username, token, sort, topic, repository, filename, message, private, topic_limit):
def starred(username, token, sort, topic, repository, filename, message, private, topic_limit, license):
"""GitHub starred

creating your own Awesome List by GitHub stars!
Expand Down Expand Up @@ -113,7 +110,8 @@ def starred(username, token, sort, topic, repository, filename, message, private
click.echo(data)
click.echo('')

click.echo(license_.format(username=username))
if license:
click.echo(license_.format(license=license))

if file:
gh = GitHub(token=token)
Expand Down