mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
Change option to --all-starred
This commit is contained in:
@@ -32,7 +32,7 @@ CLI Usage is as follows::
|
|||||||
[--all] [--issues] [--issue-comments] [--issue-events]
|
[--all] [--issues] [--issue-comments] [--issue-events]
|
||||||
[--pulls] [--pull-comments] [--pull-commits] [--labels]
|
[--pulls] [--pull-comments] [--pull-commits] [--labels]
|
||||||
[--hooks] [--milestones] [--repositories] [--bare] [--lfs]
|
[--hooks] [--milestones] [--repositories] [--bare] [--lfs]
|
||||||
[--wikis] [--skip-existing] [--clone-starred]
|
[--wikis] [--skip-existing]
|
||||||
[-L [LANGUAGES [LANGUAGES ...]]] [-N NAME_REGEX]
|
[-L [LANGUAGES [LANGUAGES ...]]] [-N NAME_REGEX]
|
||||||
[-H GITHUB_HOST] [-O] [-R REPOSITORY] [-P] [-F]
|
[-H GITHUB_HOST] [-O] [-R REPOSITORY] [-P] [-F]
|
||||||
[--prefer-ssh] [-v]
|
[--prefer-ssh] [-v]
|
||||||
|
|||||||
@@ -159,11 +159,11 @@ def parse_args():
|
|||||||
parser.add_argument('--starred',
|
parser.add_argument('--starred',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='include_starred',
|
dest='include_starred',
|
||||||
help='include starred repositories in backup')
|
help='include JSON output of starred repositories in backup')
|
||||||
parser.add_argument('--clone-starred',
|
parser.add_argument('--all-starred',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='clone_starred',
|
dest='all_starred',
|
||||||
help='clone starred repositories in backup')
|
help='include starred repositories in backup')
|
||||||
parser.add_argument('--watched',
|
parser.add_argument('--watched',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
dest='include_watched',
|
dest='include_watched',
|
||||||
@@ -505,7 +505,7 @@ def retrieve_repositories(args):
|
|||||||
|
|
||||||
repos = retrieve_data(args, template, single_request=single_request)
|
repos = retrieve_data(args, template, single_request=single_request)
|
||||||
|
|
||||||
if args.clone_starred:
|
if args.all_starred:
|
||||||
starred_template = 'https://{0}/user/starred'.format(
|
starred_template = 'https://{0}/user/starred'.format(
|
||||||
get_github_api_host(args))
|
get_github_api_host(args))
|
||||||
starred_repos = retrieve_data(args, starred_template, single_request=False)
|
starred_repos = retrieve_data(args, starred_template, single_request=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user