Class: GithubCLI::Repository
- Inherits:
-
API
- Object
- API
- GithubCLI::Repository
show all
- Defined in:
- lib/github_cli/apis/repository.rb
Class Method Summary
collapse
-
.all(params, format) ⇒ Object
-
.branch(user, repo, name, params, format) ⇒ Object
-
.branches(user, repo, params, format) ⇒ Object
-
.contributors(user, repo, params, format) ⇒ Object
-
.create(params, format) ⇒ Object
-
.delete(user, repo, params, format) ⇒ Object
-
.edit(user, repo, params, format) ⇒ Object
-
.get(user, repo, params, format) ⇒ Object
-
.languages(user, repo, params, format) ⇒ Object
-
.tags(user, repo, params, format) ⇒ Object
-
.teams(user, repo, params, format) ⇒ Object
Methods inherited from API
configure_api, github_api, output
Class Method Details
.all(params, format) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/repository.rb', line 8
def all(params, format)
output format do
github_api.repos.list params
end
end
|
.branch(user, repo, name, params, format) ⇒ Object
44
45
46
47
48
|
# File 'lib/github_cli/apis/repository.rb', line 44
def branch(user, repo, name, params, format)
output format do
github_api.repos.branch user, repo, name, params
end
end
|
.branches(user, repo, params, format) ⇒ Object
38
39
40
41
42
|
# File 'lib/github_cli/apis/repository.rb', line 38
def branches(user, repo, params, format)
output format do
github_api.repos.branches user, repo, params
end
end
|
.contributors(user, repo, params, format) ⇒ Object
50
51
52
53
54
|
# File 'lib/github_cli/apis/repository.rb', line 50
def contributors(user, repo, params, format)
output format do
github_api.repos.contributors user, repo, params
end
end
|
.create(params, format) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/repository.rb', line 20
def create(params, format)
output format do
github_api.repos.create params
end
end
|
.delete(user, repo, params, format) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/repository.rb', line 32
def delete(user, repo, params, format)
output format do
github_api.repos.delete user, repo, params
end
end
|
.edit(user, repo, params, format) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/repository.rb', line 26
def edit(user, repo, params, format)
output format do
github_api.repos.edit user, repo, params
end
end
|
.get(user, repo, params, format) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/repository.rb', line 14
def get(user, repo, params, format)
output format do
github_api.repos.get user, repo, params
end
end
|
.languages(user, repo, params, format) ⇒ Object
56
57
58
59
60
|
# File 'lib/github_cli/apis/repository.rb', line 56
def languages(user, repo, params, format)
output format do
github_api.repos.languages user, repo, params
end
end
|
62
63
64
65
66
|
# File 'lib/github_cli/apis/repository.rb', line 62
def tags(user, repo, params, format)
output format do
github_api.repos.tags user, repo, params
end
end
|
.teams(user, repo, params, format) ⇒ Object
68
69
70
71
72
|
# File 'lib/github_cli/apis/repository.rb', line 68
def teams(user, repo, params, format)
output format do
github_api.repos.teams user, repo, params
end
end
|