Class: GithubCLI::Content

Inherits:
API
  • Object
show all
Defined in:
lib/github_cli/apis/content.rb

Constant Summary

Constants inherited from API

API::ENDPOINT

Class Method Summary collapse

Methods inherited from API

configure_api, github_api, output

Class Method Details

.archive(user, repo, params, format) ⇒ Object



20
21
22
23
24
# File 'lib/github_cli/apis/content.rb', line 20

def archive(user, repo, params, format)
  output format do
    github_api.repos.contents.archive user, repo, params
  end
end

.get(user, repo, path, params, format) ⇒ Object



8
9
10
11
12
# File 'lib/github_cli/apis/content.rb', line 8

def get(user, repo, path, params, format)
  output format do
    github_api.repos.contents.get user, repo, path, params
  end
end

.readme(user, repo, params, format) ⇒ Object



14
15
16
17
18
# File 'lib/github_cli/apis/content.rb', line 14

def readme(user, repo, params, format)
  output format do
    github_api.repos.contents.readme user, repo, params
  end
end