Browse Source

Add an example for reading repos from a file

Lucas Stadler 10 years ago
parent
commit
e977e4e9ca
1 changed files with 4 additions and 0 deletions
  1. 4 0
      go/stars/README.md

+ 4 - 0
go/stars/README.md

@ -21,6 +21,10 @@ $ curl https://api.github.com/users/heyLu/repos | ./stars
21 21
# Fetch all repos (public, private, org member)
22 22
$ token=<personal access token>
23 23
$ curl -u heyLu:$token https://api.github.com/user/repos | ./stars
24
25
# Fetch repos from a file
26
$ ./stars < repos.json
27
...
24 28
```
25 29
26 30
However, note that GitHub's API uses pagination, so ensure you set the