Module: GithubCLI

Extended by:
DSL
Defined in:
lib/github_cli.rb,
lib/github_cli/ui.rb,
lib/github_cli/api.rb,
lib/github_cli/cli.rb,
lib/github_cli/dsl.rb,
lib/github_cli/util.rb,
lib/github_cli/pager.rb,
lib/github_cli/config.rb,
lib/github_cli/editor.rb,
lib/github_cli/errors.rb,
lib/github_cli/system.rb,
lib/github_cli/command.rb,
lib/github_cli/helpers.rb,
lib/github_cli/manpage.rb,
lib/github_cli/version.rb,
lib/github_cli/apis/key.rb,
lib/github_cli/apis/tag.rb,
lib/github_cli/commands.rb,
lib/github_cli/terminal.rb,
lib/github_cli/apis/blob.rb,
lib/github_cli/apis/fork.rb,
lib/github_cli/apis/gist.rb,
lib/github_cli/apis/hook.rb,
lib/github_cli/apis/team.rb,
lib/github_cli/apis/tree.rb,
lib/github_cli/apis/user.rb,
lib/github_cli/formatter.rb,
lib/github_cli/apis/email.rb,
lib/github_cli/apis/event.rb,
lib/github_cli/apis/issue.rb,
lib/github_cli/apis/label.rb,
lib/github_cli/formatters.rb,
lib/github_cli/apis/commit.rb,
lib/github_cli/apis/member.rb,
lib/github_cli/apis/search.rb,
lib/github_cli/apis/status.rb,
lib/github_cli/apis/content.rb,
lib/github_cli/apis/merging.rb,
lib/github_cli/apis/assignee.rb,
lib/github_cli/apis/download.rb,
lib/github_cli/apis/follower.rb,
lib/github_cli/apis/starring.rb,
lib/github_cli/apis/watching.rb,
lib/github_cli/command/usage.rb,
lib/github_cli/commands/keys.rb,
lib/github_cli/commands/tags.rb,
lib/github_cli/apis/milestone.rb,
lib/github_cli/apis/reference.rb,
lib/github_cli/commands/blobs.rb,
lib/github_cli/commands/forks.rb,
lib/github_cli/commands/gists.rb,
lib/github_cli/commands/hooks.rb,
lib/github_cli/commands/teams.rb,
lib/github_cli/commands/trees.rb,
lib/github_cli/commands/users.rb,
lib/github_cli/formatters/csv.rb,
lib/github_cli/apis/repository.rb,
lib/github_cli/apis/statistics.rb,
lib/github_cli/commands/emails.rb,
lib/github_cli/commands/events.rb,
lib/github_cli/commands/issues.rb,
lib/github_cli/commands/labels.rb,
lib/github_cli/commands/search.rb,
lib/github_cli/commands/commits.rb,
lib/github_cli/commands/members.rb,
lib/github_cli/commands/merging.rb,
lib/github_cli/formatters/table.rb,
lib/github_cli/apis/collaborator.rb,
lib/github_cli/apis/notification.rb,
lib/github_cli/apis/organization.rb,
lib/github_cli/apis/pull_request.rb,
lib/github_cli/command/arguments.rb,
lib/github_cli/commands/contents.rb,
lib/github_cli/commands/starring.rb,
lib/github_cli/commands/statuses.rb,
lib/github_cli/commands/watching.rb,
lib/github_cli/apis/authorization.rb,
lib/github_cli/command/completion.rb,
lib/github_cli/commands/assignees.rb,
lib/github_cli/commands/downloads.rb,
lib/github_cli/commands/followers.rb,
lib/github_cli/commands/milestones.rb,
lib/github_cli/commands/references.rb,
lib/github_cli/commands/statistics.rb,
lib/github_cli/commands/repositories.rb,
lib/github_cli/commands/collaborators.rb,
lib/github_cli/commands/notifications.rb,
lib/github_cli/commands/organizations.rb,
lib/github_cli/commands/pull_requests.rb,
lib/github_cli/commands/authorizations.rb

Overview

Base module which adds Github API to the command line

Defined Under Namespace

Modules: Commands, DSL, Formatters, Helpers, Manpage, Util Classes: API, ApiError, Assignee, Authorization, Blob, CLI, Collaborator, Command, Commit, Config, ConfigFileNotFound, Content, Download, Editor, Email, Event, Follower, Fork, Formatter, Gist, GitHubError, GithubCLIError, HTTPError, Hook, Issue, Key, Label, Member, Merging, Milestone, Notification, Organization, Pager, PullRequest, Reference, Repository, RequiredArgumentMissingError, Search, Starring, Statistics, Status, System, Tag, Team, Terminal, Tree, UI, UnknownFormatError, User, Watching

Constant Summary collapse

VERSION =
"0.6.2"

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from DSL

before, configure, on_error, program_name

Class Attribute Details

.configObject


61
62
63
# File 'lib/github_cli.rb', line 61

def config
  @config ||= GithubCLI::Config.new root
end

.uiObject


45
46
47
# File 'lib/github_cli.rb', line 45

def ui
  @ui ||= UI.new Thor::Shell::Basic.new
end

Class Method Details

.commandsObject


65
66
67
# File 'lib/github_cli.rb', line 65

def commands
  @commands ||= GithubCLI::Command.all
end

.default_configfileObject


53
54
55
# File 'lib/github_cli.rb', line 53

def default_configfile
  Helpers.default_configfile
end

.executable_nameObject


49
50
51
# File 'lib/github_cli.rb', line 49

def executable_name
  File.basename($PROGRAM_NAME)
end

.rootObject


57
58
59
# File 'lib/github_cli.rb', line 57

def root
  default_configfile.expand_path
end

.terminalObject


69
70
71
# File 'lib/github_cli.rb', line 69

def terminal
  @terminal ||= GithubCLI::Terminal
end