New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create "internal use" command verbs: _dump, _help #5011
Merged
rolandwalker
merged 14 commits into
Homebrew:master
from
rolandwalker:internal_command_dump
Jun 21, 2014
Merged
create "internal use" command verbs: _dump, _help #5011
rolandwalker
merged 14 commits into
Homebrew:master
from
rolandwalker:internal_command_dump
Jun 21, 2014
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rolandwalker
changed the title
create "internal use" command verbs: _dump, _help
WIP create "internal use" command verbs: _dump, _help
Jun 20, 2014
from which all commands inherit. Add `visible` method for future use.
with addtl formatting/comments
rolandwalker
changed the title
WIP create "internal use" command verbs: _dump, _help
create "internal use" command verbs: _dump, _help
Jun 20, 2014
invoking new `command_name` method from the base class when the command verb string is needed
no longer a need for hardcoding constants to remove (such as `:ISSUES_URL`), because `command_classes` checks for a `run` method.
by `zip`ping `commands` with `command_classes`
- based on abstract class `Cask::CLI::InternalUseBase` - interal-use class file names follow `internal_<verb>.rb`, but the "internal" is dropped for the CLI - internal-use verbs start with underscore at CLI - internal-use verbs are invisible in the usage document
rolandwalker
added a commit
that referenced
this pull request
Jun 21, 2014
create "internal use" command verbs: _dump, _help
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cask::CLI::InternalUseBase
internal_<verb>.rb
, but the "internal" is dropped for the CLI_dump
command_help
commandcli.rb
andcli/*.rb
_appcast