lib/github_cli/apis/tree.rb
# frozen_string_literal: true
require_relative "../api"
module GithubCLI
class Tree
extend API
def self.get(user, repo, sha, params, options)
output options do
github_api(options).git_data.trees.get(user, repo, sha, params)
end
end
def self.create(user, repo, params, options)
output options do
github_api(options).git_data.trees.create(user, repo, params)
end
end
end # Tree
end # GithubCLI