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/subcommands.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
.config ⇒ Object
59
60
61
|
# File 'lib/github_cli.rb', line 59
def config
@config ||= GithubCLI::Config.new root
end
|
.ui ⇒ Object
43
44
45
|
# File 'lib/github_cli.rb', line 43
def ui
@ui ||= UI.new Thor::Shell::Basic.new
end
|
Class Method Details
.commands ⇒ Object
63
64
65
|
# File 'lib/github_cli.rb', line 63
def commands
@commands ||= GithubCLI::Command.all
end
|
.default_configfile ⇒ Object
51
52
53
|
# File 'lib/github_cli.rb', line 51
def default_configfile
Helpers.default_configfile
end
|
.executable_name ⇒ Object
47
48
49
|
# File 'lib/github_cli.rb', line 47
def executable_name
File.basename($PROGRAM_NAME)
end
|
.root ⇒ Object
55
56
57
|
# File 'lib/github_cli.rb', line 55
def root
default_configfile.expand_path
end
|
.terminal ⇒ Object
67
68
69
|
# File 'lib/github_cli.rb', line 67
def terminal
@terminal ||= GithubCLI::Terminal
end
|