Skip to content

Useful CLI to get, find and access github repositories

License

Notifications You must be signed in to change notification settings

kyoz/all-repos-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

all-repos-cli

Useful CLI to get github repositories

Build Status NPM version XO code style

Introduce

  • Since Github API do have rate limit, i do use another approach is to get infomation in webpage.
  • But it's not good if we send too much request, so i do store data in local json files to read more faster and we don't have to request to github too much. Just when we need lastest data, we do update (It's like git pull...).

Install

$ npm install -g all-repos-cli

Usage

$ repos --help

  Usage
    $ repos
    $ repos <github-username>
  Options
    --update, --u           Update repositories data to latest
    --updateUser, --uu      Update default user (Since 'npm whoami' is quite slow)
    --clearCache, --cc      Clear local cache
  Examples
    $ repos                 Get local repositories of current user
    $ repos banminkyoz      Get local repositories of 'banminkyoz'
    $ repos --u             Update repositories of current user to latest
    $ repos --u banminkyoz  Update repositories of 'banminkyoz' to latest
    $ repos --uu            Update npm current logged user
    $ repos --cc            Clear all local cache

Related

License

MIT © Kyoz