Skip to content

Commit

Permalink
Merge pull request #15 from whiteinge/paginate-org-repos
Browse files Browse the repository at this point in the history
Add pagination options to org_repos()
  • Loading branch information
whiteinge committed Sep 20, 2015
2 parents 6e150c8 + 3d71943 commit 879b665
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,10 @@ org_repos() {
#
# Keyword arguments
#
local _follow_next
# Automatically look for a 'Links' header and follow any 'next' URLs.
local _follow_next_limit
# Maximum number of 'next' URLs to follow before stopping.
local _filter='.[] | "\(.name)\t\(.ssh_url)"'
# A jq filter to apply to the return data.
#
Expand All @@ -915,6 +919,7 @@ org_repos() {
shift 1
local qs
_opts_pagination "$@"
_opts_filter "$@"
_opts_qs "$@"
Expand Down

0 comments on commit 879b665

Please sign in to comment.