lib/github_cli/apis/team.rb in github_cli-0.5.9 vs lib/github_cli/apis/team.rb in github_cli-0.6.0
- old
+ new
@@ -3,84 +3,84 @@
module GithubCLI
class Team < API
class << self
- def all(org, params, format)
- output format do
- github_api.orgs.teams.list org, params
+ def all(org, params, options)
+ output options do
+ github_api(options).orgs.teams.list org, params
end
end
- def get(id, params, format)
- output format do
- github_api.orgs.teams.get id, params
+ def get(id, params, options)
+ output options do
+ github_api(options).orgs.teams.get id, params
end
end
- def create(org, params, format)
- output format do
- github_api.orgs.teams.create org, params
+ def create(org, params, options)
+ output options do
+ github_api(options).orgs.teams.create org, params
end
end
- def edit(id, params, format)
- output format do
- github_api.orgs.teams.edit id, params
+ def edit(id, params, options)
+ output options do
+ github_api(options).orgs.teams.edit id, params
end
end
- def delete(id, params, format)
- output format do
- github_api.orgs.teams.delete id, params
+ def delete(id, params, options)
+ output options do
+ github_api(options).orgs.teams.delete id, params
end
end
- def all_member(id, params, format)
- output format do
- github_api.orgs.teams.list_members id, params
+ def all_member(id, params, options)
+ output options do
+ github_api(options).orgs.teams.list_members id, params
end
end
- def member(id, user, params, format)
- output format do
- github_api.orgs.teams.team_member? id, user, params
+ def member(id, user, params, options)
+ output options do
+ github_api(options).orgs.teams.team_member? id, user, params
end
end
- def add_member(id, user, params, format)
- output format do
- github_api.orgs.teams.add_member id, user, params
+ def add_member(id, user, params, options)
+ output options do
+ github_api(options).orgs.teams.add_member id, user, params
end
end
- def remove_member(id, user, params, format)
- output format do
- github_api.orgs.teams.remove_member id, user, params
+ def remove_member(id, user, params, options)
+ output options do
+ github_api(options).orgs.teams.remove_member id, user, params
end
end
- def all_repo(id, params, format)
- output format do
- github_api.orgs.teams.list_repos id, params
+ def all_repo(id, params, options)
+ output options do
+ github_api(options).orgs.teams.list_repos id, params
end
end
- def repo(id, user, repo, params, format)
- output format do
- github_api.orgs.teams.team_repo? id, user, repo, params
+ def repo(id, user, repo, params, options)
+ output options do
+ github_api(options).orgs.teams.team_repo? id, user, repo, params
end
end
- def add_repo(id, user, repo, params, format)
- output format do
- github_api.orgs.teams.add_repo id, user, repo, params
+ def add_repo(id, user, repo, params, options)
+ output options do
+ github_api(options).orgs.teams.add_repo id, user, repo, params
end
end
- def remove_repo(id, user, repo, params, format)
- output format do
- github_api.orgs.teams.remove_repo id, user, repo, params
+ def remove_repo(id, user, repo, params, options)
+ output options do
+ github_api(options).orgs.teams.remove_repo id, user, repo, params
end
end
end
end # Team