From 3d71943dc11fdd32ba6a8c9b342d77ebe7dc19b2 Mon Sep 17 00:00:00 2001 From: Seth House Date: Sat, 29 Aug 2015 02:10:56 -0600 Subject: [PATCH] Add pagination options to org_repos() --- ok.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ok.sh b/ok.sh index ad76814..dbd926d 100755 --- a/ok.sh +++ b/ok.sh @@ -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. # @@ -915,6 +919,7 @@ org_repos() { shift 1 local qs + _opts_pagination "$@" _opts_filter "$@" _opts_qs "$@"