lib/github_cli/apis/tree.rb in github_cli-0.2.1 vs lib/github_cli/apis/tree.rb in github_cli-0.3.0
- old
+ new
@@ -3,15 +3,19 @@
module GithubCLI
class Tree < API
class << self
- def get(user, repo, sha, params)
- github_api.git_data.trees.get user, repo, sha, params
+ def get(user, repo, sha, params, format)
+ output format do
+ github_api.git_data.trees.get user, repo, sha, params
+ end
end
- def create(user, repo, params)
- github_api.git_data.trees.create user, repo, params
+ def create(user, repo, params, format)
+ output format do
+ github_api.git_data.trees.create user, repo, params
+ end
end
end
end # Repository
end # GithubCLI