Class: GithubCLI::Team
- Inherits:
-
API
- Object
- API
- GithubCLI::Team
show all
- Defined in:
- lib/github_cli/apis/team.rb
Class Method Summary
collapse
-
.add_member(id, user, params, options) ⇒ Object
-
.add_repo(id, user, repo, params, options) ⇒ Object
-
.all(org, params, options) ⇒ Object
-
.all_member(id, params, options) ⇒ Object
-
.all_repo(id, params, options) ⇒ Object
-
.create(org, params, options) ⇒ Object
-
.delete(id, params, options) ⇒ Object
-
.edit(id, params, options) ⇒ Object
-
.get(id, params, options) ⇒ Object
-
.member(id, user, params, options) ⇒ Object
-
.remove_member(id, user, params, options) ⇒ Object
-
.remove_repo(id, user, repo, params, options) ⇒ Object
-
.repo(id, user, repo, params, options) ⇒ Object
Methods inherited from API
configure, github_api, output, set_basic_auth
Class Method Details
.add_member(id, user, params, options) ⇒ Object
50
51
52
53
54
|
# File 'lib/github_cli/apis/team.rb', line 50
def add_member(id, user, params, options)
output options do
github_api(options).orgs.teams.add_member id, user, params
end
end
|
.add_repo(id, user, repo, params, options) ⇒ Object
74
75
76
77
78
|
# File 'lib/github_cli/apis/team.rb', line 74
def add_repo(id, user, repo, params, options)
output options do
github_api(options).orgs.teams.add_repo id, user, repo, params
end
end
|
.all(org, params, options) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/team.rb', line 8
def all(org, params, options)
output options do
github_api(options).orgs.teams.list org, params
end
end
|
.all_member(id, params, options) ⇒ Object
38
39
40
41
42
|
# File 'lib/github_cli/apis/team.rb', line 38
def all_member(id, params, options)
output options do
github_api(options).orgs.teams.list_members id, params
end
end
|
.all_repo(id, params, options) ⇒ Object
62
63
64
65
66
|
# File 'lib/github_cli/apis/team.rb', line 62
def all_repo(id, params, options)
output options do
github_api(options).orgs.teams.list_repos id, params
end
end
|
.create(org, params, options) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/team.rb', line 20
def create(org, params, options)
output options do
github_api(options).orgs.teams.create org, params
end
end
|
.delete(id, params, options) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/team.rb', line 32
def delete(id, params, options)
output options do
github_api(options).orgs.teams.delete id, params
end
end
|
.edit(id, params, options) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/team.rb', line 26
def edit(id, params, options)
output options do
github_api(options).orgs.teams.edit id, params
end
end
|
.get(id, params, options) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/team.rb', line 14
def get(id, params, options)
output options do
github_api(options).orgs.teams.get id, params
end
end
|
.member(id, user, params, options) ⇒ Object
44
45
46
47
48
|
# File 'lib/github_cli/apis/team.rb', line 44
def member(id, user, params, options)
output options do
github_api(options).orgs.teams.team_member? id, user, params
end
end
|
.remove_member(id, user, params, options) ⇒ Object
56
57
58
59
60
|
# File 'lib/github_cli/apis/team.rb', line 56
def remove_member(id, user, params, options)
output options do
github_api(options).orgs.teams.remove_member id, user, params
end
end
|
.remove_repo(id, user, repo, params, options) ⇒ Object
80
81
82
83
84
|
# File 'lib/github_cli/apis/team.rb', line 80
def remove_repo(id, user, repo, params, options)
output options do
github_api(options).orgs.teams.remove_repo id, user, repo, params
end
end
|
.repo(id, user, repo, params, options) ⇒ Object
68
69
70
71
72
|
# File 'lib/github_cli/apis/team.rb', line 68
def repo(id, user, repo, params, options)
output options do
github_api(options).orgs.teams.team_repo? id, user, repo, params
end
end
|