hedyhli / starcli

:sparkles: Browse trending GitHub projects from your command line
https://pypi.org/project/starcli/
MIT License
550 stars 50 forks source link

Add 'last updated' option #51

Closed ylchao closed 4 years ago

ylchao commented 4 years ago

Context

Resolves #49

Description

  1. Add a --last-update (-u) option
  2. Refractor the part for checking the date to the function convert_datetime in starcli/search.py
  3. Fix a bug when there are no repos found. The bug occurs if the length of the returned tmp_repos is smaller than limit_results in starcli/__main__.py
  4. pylint warns Wrong hanging indentation before block (add 4 spaces) if black is used for formatting. I sticked to black's formatting in the end. See this issue.
hedyhli commented 4 years ago

Thanks @ylchao I'll have a look

hedyhli commented 4 years ago

@allcontributors please add @ylchao for code

allcontributors[bot] commented 4 years ago

@hedythedev

I've put up a pull request to add @ylchao! :tada: