github_cli 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +1 -0
- data/CHANGELOG.md +12 -1
- data/Gemfile.lock +12 -10
- data/README.md +18 -0
- data/features/authorization.feature +53 -0
- data/features/blob.feature +1 -1
- data/features/download.feature +13 -11
- data/features/gist.feature +9 -1
- data/features/label.feature +11 -12
- data/features/member.feature +5 -4
- data/features/merging.feature +5 -4
- data/features/organization.feature +5 -4
- data/features/repository.feature +9 -1
- data/features/search.feature +5 -4
- data/github_cli.gemspec +1 -1
- data/lib/github_cli/api.rb +56 -49
- data/lib/github_cli/apis/assignee.rb +6 -6
- data/lib/github_cli/apis/authorization.rb +5 -5
- data/lib/github_cli/apis/blob.rb +6 -6
- data/lib/github_cli/apis/collaborator.rb +12 -12
- data/lib/github_cli/apis/commit.rb +6 -6
- data/lib/github_cli/apis/content.rb +9 -9
- data/lib/github_cli/apis/download.rb +15 -15
- data/lib/github_cli/apis/email.rb +9 -9
- data/lib/github_cli/apis/event.rb +24 -24
- data/lib/github_cli/apis/follower.rb +16 -15
- data/lib/github_cli/apis/fork.rb +6 -6
- data/lib/github_cli/apis/gist.rb +31 -30
- data/lib/github_cli/apis/hook.rb +6 -6
- data/lib/github_cli/apis/issue.rb +12 -12
- data/lib/github_cli/apis/key.rb +15 -15
- data/lib/github_cli/apis/label.rb +24 -26
- data/lib/github_cli/apis/member.rb +15 -27
- data/lib/github_cli/apis/merging.rb +3 -3
- data/lib/github_cli/apis/milestone.rb +15 -15
- data/lib/github_cli/apis/notification.rb +18 -18
- data/lib/github_cli/apis/organization.rb +9 -9
- data/lib/github_cli/apis/pull_request.rb +24 -24
- data/lib/github_cli/apis/reference.rb +15 -15
- data/lib/github_cli/apis/repository.rb +13 -12
- data/lib/github_cli/apis/search.rb +12 -12
- data/lib/github_cli/apis/starring.rb +15 -15
- data/lib/github_cli/apis/status.rb +6 -6
- data/lib/github_cli/apis/tag.rb +6 -6
- data/lib/github_cli/apis/team.rb +39 -39
- data/lib/github_cli/apis/tree.rb +6 -6
- data/lib/github_cli/apis/user.rb +9 -9
- data/lib/github_cli/apis/watching.rb +15 -15
- data/lib/github_cli/cli.rb +24 -16
- data/lib/github_cli/commands/assignees.rb +8 -2
- data/lib/github_cli/commands/authorizations.rb +10 -13
- data/lib/github_cli/commands/blobs.rb +9 -3
- data/lib/github_cli/commands/collaborators.rb +16 -4
- data/lib/github_cli/commands/commits.rb +11 -6
- data/lib/github_cli/commands/contents.rb +9 -6
- data/lib/github_cli/commands/downloads.rb +30 -6
- data/lib/github_cli/commands/emails.rb +12 -3
- data/lib/github_cli/commands/events.rb +30 -8
- data/lib/github_cli/commands/followers.rb +20 -5
- data/lib/github_cli/commands/forks.rb +6 -4
- data/lib/github_cli/commands/gists.rb +39 -12
- data/lib/github_cli/commands/hooks.rb +1 -1
- data/lib/github_cli/commands/issues.rb +15 -4
- data/lib/github_cli/commands/keys.rb +20 -5
- data/lib/github_cli/commands/labels.rb +53 -14
- data/lib/github_cli/commands/members.rb +28 -9
- data/lib/github_cli/commands/merging.rb +3 -2
- data/lib/github_cli/commands/milestones.rb +27 -15
- data/lib/github_cli/commands/notifications.rb +19 -11
- data/lib/github_cli/commands/organizations.rb +24 -5
- data/lib/github_cli/commands/pull_requests.rb +30 -8
- data/lib/github_cli/commands/references.rb +17 -5
- data/lib/github_cli/commands/repositories.rb +6 -4
- data/lib/github_cli/commands/search.rb +24 -6
- data/lib/github_cli/commands/starring.rb +19 -5
- data/lib/github_cli/commands/statuses.rb +7 -3
- data/lib/github_cli/commands/tags.rb +7 -3
- data/lib/github_cli/commands/teams.rb +52 -17
- data/lib/github_cli/commands/trees.rb +6 -2
- data/lib/github_cli/commands/users.rb +9 -3
- data/lib/github_cli/commands/watching.rb +19 -5
- data/lib/github_cli/vendor/thor/actions/directory.rb +2 -0
- data/lib/github_cli/vendor/thor/actions/empty_directory.rb +3 -19
- data/lib/github_cli/vendor/thor/actions/file_manipulation.rb +4 -1
- data/lib/github_cli/vendor/thor/actions.rb +1 -1
- data/lib/github_cli/vendor/thor/base.rb +20 -18
- data/lib/github_cli/vendor/thor/command.rb +1 -1
- data/lib/github_cli/vendor/thor/error.rb +0 -4
- data/lib/github_cli/vendor/thor/group.rb +4 -9
- data/lib/github_cli/vendor/thor/runner.rb +1 -1
- data/lib/github_cli/vendor/thor/shell/basic.rb +25 -7
- data/lib/github_cli/vendor/thor/version.rb +1 -1
- data/lib/github_cli/vendor/thor.rb +17 -2
- data/lib/github_cli/version.rb +1 -1
- data/spec/github_cli/api/configure_spec.rb +50 -0
- data/spec/github_cli/api/github_api_spec.rb +19 -0
- data/spec/github_cli/commands/assignees_spec.rb +1 -1
- data/spec/github_cli/commands/blobs_spec.rb +1 -1
- data/spec/github_cli/commands/collaborators_spec.rb +1 -1
- data/spec/github_cli/commands/commits_spec.rb +1 -1
- data/spec/github_cli/commands/contents_spec.rb +1 -1
- data/spec/github_cli/commands/downloads_spec.rb +35 -0
- data/spec/github_cli/commands/emails_spec.rb +1 -1
- data/spec/github_cli/commands/events_spec.rb +1 -1
- data/spec/github_cli/commands/followers_spec.rb +1 -1
- data/spec/github_cli/commands/forks_spec.rb +1 -1
- data/spec/github_cli/commands/gists_spec.rb +6 -1
- data/spec/github_cli/commands/issues_spec.rb +1 -1
- data/spec/github_cli/commands/keys_spec.rb +1 -1
- data/spec/github_cli/commands/labels_spec.rb +13 -3
- data/spec/github_cli/commands/members_spec.rb +46 -0
- data/spec/github_cli/commands/merging_spec.rb +1 -1
- data/spec/github_cli/commands/milestones_spec.rb +1 -1
- data/spec/github_cli/commands/notifications_spec.rb +1 -1
- data/spec/github_cli/commands/organizations_spec.rb +30 -0
- data/spec/github_cli/commands/pull_requests_spec.rb +1 -1
- data/spec/github_cli/commands/references_spec.rb +1 -1
- data/spec/github_cli/commands/repositories_spec.rb +5 -0
- data/spec/github_cli/commands/starring_spec.rb +1 -1
- data/spec/github_cli/commands/statuses_spec.rb +1 -1
- data/spec/github_cli/commands/tags_spec.rb +1 -1
- data/spec/github_cli/commands/teams_spec.rb +1 -1
- data/spec/github_cli/commands/trees_spec.rb +1 -1
- data/spec/github_cli/commands/users_spec.rb +1 -1
- data/spec/github_cli/commands/watching_spec.rb +1 -1
- metadata +27 -17
- data/spec/github_cli/api_spec.rb +0 -19
|
@@ -5,45 +5,33 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def all(org, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.orgs.members.list org, params
|
|
8
|
+
def all(org, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).orgs.members.list org, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def
|
|
15
|
-
output
|
|
16
|
-
github_api.orgs.members.
|
|
14
|
+
def member?(org, user, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).orgs.members.member? org, user, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def
|
|
21
|
-
output
|
|
22
|
-
github_api.orgs.members.
|
|
20
|
+
def delete(org, user, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).orgs.members.delete org, user, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def
|
|
27
|
-
output
|
|
28
|
-
github_api.orgs.members.
|
|
26
|
+
def publicize(org, user, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).orgs.members.publicize org, user, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def
|
|
33
|
-
output
|
|
34
|
-
github_api.orgs.members.
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def publicize(org, user, params, format)
|
|
39
|
-
output format do
|
|
40
|
-
github_api.orgs.members.publicize org, user, params
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def conceal(org, user, params, format)
|
|
45
|
-
output format do
|
|
46
|
-
github_api.orgs.members.conceal org, user, params
|
|
32
|
+
def conceal(org, user, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).orgs.members.conceal org, user, params
|
|
47
35
|
end
|
|
48
36
|
end
|
|
49
37
|
end
|
|
@@ -5,9 +5,9 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def merge(user, repo, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.repos.merging.merge user, repo, params
|
|
8
|
+
def merge(user, repo, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).repos.merging.merge user, repo, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
@@ -5,33 +5,33 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def all(user, repo, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.issues.milestones.list user, repo, params
|
|
8
|
+
def all(user, repo, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).issues.milestones.list user, repo, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def get(user, repo, id, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.issues.milestones.get user, repo, id, params
|
|
14
|
+
def get(user, repo, id, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).issues.milestones.get user, repo, id, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def create(user, repo, params,
|
|
21
|
-
output
|
|
22
|
-
github_api.issues.milestones.create user, repo, params
|
|
20
|
+
def create(user, repo, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).issues.milestones.create user, repo, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def update(user, repo, id, params,
|
|
27
|
-
output
|
|
28
|
-
github_api.issues.milestones.update user, repo, id, params
|
|
26
|
+
def update(user, repo, id, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).issues.milestones.update user, repo, id, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def delete(user, repo, id, params,
|
|
33
|
-
output
|
|
34
|
-
github_api.issues.milestones.delete user, repo, id, params
|
|
32
|
+
def delete(user, repo, id, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).issues.milestones.delete user, repo, id, params
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -5,39 +5,39 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def all(params,
|
|
9
|
-
output
|
|
10
|
-
github_api.activity.notifications.list params
|
|
8
|
+
def all(params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).activity.notifications.list params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def get(id, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.activity.notifications.get id, params
|
|
14
|
+
def get(id, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).activity.notifications.get id, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def mark(params,
|
|
21
|
-
output
|
|
22
|
-
github_api.activity.notifications.mark params
|
|
20
|
+
def mark(params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).activity.notifications.mark params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def subscribed?(id, params,
|
|
27
|
-
output
|
|
28
|
-
github_api.activity.notifications.subscribed? id, params
|
|
26
|
+
def subscribed?(id, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).activity.notifications.subscribed? id, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def create(id, params,
|
|
33
|
-
output
|
|
34
|
-
github_api.activity.notifications.create id, params
|
|
32
|
+
def create(id, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).activity.notifications.create id, params
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def delete(id, params,
|
|
39
|
-
output
|
|
40
|
-
github_api.activity.notifications.delete id, params
|
|
38
|
+
def delete(id, params, options)
|
|
39
|
+
output options do
|
|
40
|
+
github_api(options).activity.notifications.delete id, params
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
end
|
|
@@ -5,21 +5,21 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def list(params,
|
|
9
|
-
output
|
|
10
|
-
github_api.orgs.list params
|
|
8
|
+
def list(params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).orgs.list params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def get(org, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.orgs.get org, params
|
|
14
|
+
def get(org, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).orgs.get org, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def edit(org, params,
|
|
21
|
-
output
|
|
22
|
-
github_api.orgs.edit org, params
|
|
20
|
+
def edit(org, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).orgs.edit org, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -5,51 +5,51 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def list(user, repo, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.pull_requests.list user, repo, params
|
|
8
|
+
def list(user, repo, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).pull_requests.list user, repo, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def get(user, repo, number, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.pull_requests.get user, repo, number, params
|
|
14
|
+
def get(user, repo, number, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).pull_requests.get user, repo, number, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def create(user, repo, params,
|
|
21
|
-
output
|
|
22
|
-
github_api.pull_requests.create user, repo, params
|
|
20
|
+
def create(user, repo, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).pull_requests.create user, repo, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def update(user, repo, number, params,
|
|
27
|
-
output
|
|
28
|
-
github_api.pull_requests.update user, repo, number, params
|
|
26
|
+
def update(user, repo, number, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).pull_requests.update user, repo, number, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def commits(user, repo, number, params,
|
|
33
|
-
output
|
|
34
|
-
github_api.pull_requests.commits user, repo, number, params
|
|
32
|
+
def commits(user, repo, number, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).pull_requests.commits user, repo, number, params
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def files(user, repo, number, params,
|
|
39
|
-
output
|
|
40
|
-
github_api.pull_requests.files user, repo, number, params
|
|
38
|
+
def files(user, repo, number, params, options)
|
|
39
|
+
output options do
|
|
40
|
+
github_api(options).pull_requests.files user, repo, number, params
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
-
def merged(user, repo, number, params,
|
|
45
|
-
output
|
|
46
|
-
github_api.pull_requests.merged? user, repo, number, params
|
|
44
|
+
def merged(user, repo, number, params, options)
|
|
45
|
+
output options do
|
|
46
|
+
github_api(options).pull_requests.merged? user, repo, number, params
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
def merge(user, repo, number, params,
|
|
51
|
-
output
|
|
52
|
-
github_api.pull_requests.merge user, repo, number, params
|
|
50
|
+
def merge(user, repo, number, params, options)
|
|
51
|
+
output options do
|
|
52
|
+
github_api(options).pull_requests.merge user, repo, number, params
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
|
@@ -5,33 +5,33 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def list(user, repo, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.git_data.references.list user, repo, params
|
|
8
|
+
def list(user, repo, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).git_data.references.list user, repo, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def get(user, repo, ref, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.git_data.references.get user, repo, ref, params
|
|
14
|
+
def get(user, repo, ref, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).git_data.references.get user, repo, ref, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def create(user, repo, params,
|
|
21
|
-
output
|
|
22
|
-
github_api.git_data.references.create user, repo, params
|
|
20
|
+
def create(user, repo, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).git_data.references.create user, repo, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def update(user, repo, ref, params,
|
|
27
|
-
output
|
|
28
|
-
github_api.git_data.references.update user, repo, ref, params
|
|
26
|
+
def update(user, repo, ref, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).git_data.references.update user, repo, ref, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def delete(user, repo, ref, params,
|
|
33
|
-
output
|
|
34
|
-
github_api.git_data.references.delete user, repo, ref, params
|
|
32
|
+
def delete(user, repo, ref, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).git_data.references.delete user, repo, ref, params
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -6,67 +6,68 @@ module GithubCLI
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
8
|
def all(params, options)
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
args = options[:every] ? ['every', params] : [params]
|
|
10
|
+
output options do
|
|
11
|
+
github_api(options).repos.list *args
|
|
11
12
|
end
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
def get(user, repo, params, options)
|
|
15
|
-
output options
|
|
16
|
+
output options do
|
|
16
17
|
github_api(options).repos.get user, repo, params
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
def create(params, options)
|
|
21
|
-
output options
|
|
22
|
+
output options do
|
|
22
23
|
github_api(options).repos.create params
|
|
23
24
|
end
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
def edit(user, repo, params, options)
|
|
27
|
-
output options
|
|
28
|
+
output options do
|
|
28
29
|
github_api(options).repos.edit user, repo, params
|
|
29
30
|
end
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
def delete(user, repo, params, options)
|
|
33
|
-
output options
|
|
34
|
+
output options do
|
|
34
35
|
github_api(options).repos.delete user, repo, params
|
|
35
36
|
end
|
|
36
37
|
end
|
|
37
38
|
|
|
38
39
|
def branches(user, repo, params, options)
|
|
39
|
-
output options
|
|
40
|
+
output options do
|
|
40
41
|
github_api(options).repos.branches user, repo, params
|
|
41
42
|
end
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
def branch(user, repo, name, params, options)
|
|
45
|
-
output options
|
|
46
|
+
output options do
|
|
46
47
|
github_api(options).repos.branch user, repo, name, params
|
|
47
48
|
end
|
|
48
49
|
end
|
|
49
50
|
|
|
50
51
|
def contributors(user, repo, params, options)
|
|
51
|
-
output options
|
|
52
|
+
output options do
|
|
52
53
|
github_api(options).repos.contributors user, repo, params
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
56
|
|
|
56
57
|
def languages(user, repo, params, options)
|
|
57
|
-
output options
|
|
58
|
+
output options do
|
|
58
59
|
github_api(options).repos.languages user, repo, params
|
|
59
60
|
end
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
def tags(user, repo, params, options)
|
|
63
|
-
output options
|
|
64
|
+
output options do
|
|
64
65
|
github_api.repos.tags user, repo, params
|
|
65
66
|
end
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
def teams(user, repo, params, options)
|
|
69
|
-
output options
|
|
70
|
+
output options do
|
|
70
71
|
github_api(options).repos.teams user, repo, params
|
|
71
72
|
end
|
|
72
73
|
end
|
|
@@ -5,27 +5,27 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def issue(
|
|
9
|
-
output
|
|
10
|
-
github_api.search.issues params
|
|
8
|
+
def issue(params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).search.issues params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def repo(params,
|
|
15
|
-
output
|
|
16
|
-
github_api.search.repos params
|
|
14
|
+
def repo(params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).search.repos params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def user(params,
|
|
21
|
-
output
|
|
22
|
-
github_api.search.users params
|
|
20
|
+
def user(params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).search.users params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def email(params,
|
|
27
|
-
output
|
|
28
|
-
github_api.search.email params
|
|
26
|
+
def email(params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).search.email params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -5,33 +5,33 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def list(user, repo, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.activity.starring.list user, repo, params
|
|
8
|
+
def list(user, repo, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).activity.starring.list user, repo, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def starred(params,
|
|
15
|
-
output
|
|
16
|
-
github_api.activity.starring.starred params
|
|
14
|
+
def starred(params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).activity.starring.starred params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def starring?(user, repo, params,
|
|
21
|
-
output
|
|
22
|
-
github_api.activity.starring.starring? user, repo, params
|
|
20
|
+
def starring?(user, repo, params, options)
|
|
21
|
+
output options do
|
|
22
|
+
github_api(options).activity.starring.starring? user, repo, params
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
def star(user, repo, params,
|
|
27
|
-
output
|
|
28
|
-
github_api.activity.starring.star user, repo, params
|
|
26
|
+
def star(user, repo, params, options)
|
|
27
|
+
output options do
|
|
28
|
+
github_api(options).activity.starring.star user, repo, params
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
def unstar(user, repo, params,
|
|
33
|
-
output
|
|
34
|
-
github_api.activity.starring.unstar user, repo, params
|
|
32
|
+
def unstar(user, repo, params, options)
|
|
33
|
+
output options do
|
|
34
|
+
github_api(options).activity.starring.unstar user, repo, params
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
end
|
|
@@ -5,15 +5,15 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def all(user, repo, sha, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.repos.statuses.list user, repo, sha, params
|
|
8
|
+
def all(user, repo, sha, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).repos.statuses.list user, repo, sha, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def create(user, repo, sha, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.repos.statuses.create user, repo, sha, params
|
|
14
|
+
def create(user, repo, sha, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).repos.statuses.create user, repo, sha, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
data/lib/github_cli/apis/tag.rb
CHANGED
|
@@ -5,15 +5,15 @@ module GithubCLI
|
|
|
5
5
|
|
|
6
6
|
class << self
|
|
7
7
|
|
|
8
|
-
def get(user, repo, sha, params,
|
|
9
|
-
output
|
|
10
|
-
github_api.git_data.tags.get user, repo, sha, params
|
|
8
|
+
def get(user, repo, sha, params, options)
|
|
9
|
+
output options do
|
|
10
|
+
github_api(options).git_data.tags.get user, repo, sha, params
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def create(user, repo, params,
|
|
15
|
-
output
|
|
16
|
-
github_api.git_data.tags.create user, repo, params
|
|
14
|
+
def create(user, repo, params, options)
|
|
15
|
+
output options do
|
|
16
|
+
github_api(options).git_data.tags.create user, repo, params
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|