Sha256: ff7e73df87557b029319b38b6a2db555c3ff5a121bec8cc7bf4503d8d42a7710
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
# encoding: utf-8 module GithubCLI # The API class is the main entry point for creating GithubCLI APIs. class API class ApiError < StandardError; end @@api = nil def self.github_api if @@api @@api else @@api = Github.new @@api.oauth_token = GithubCLI.config['oauth_token'] @@api.basic_auth = GithubCLI.config['basic_auth'] @@api end end def self.configure_api end def self.output(format=:table, &block) response = block.call GithubCLI::Terminal.render_output response, :format => format end class All def initialize(params) puts Github::Repos.new.all params end end end # API end # GithubCLI
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.3.1 | lib/github_cli/api.rb |
github_cli-0.3.0 | lib/github_cli/api.rb |