Class: GitHealthCheck::Cli::HelpCommand
- Inherits:
-
GitHealthCheckCommand
- Object
- GitHealthCheckCommand
- GitHealthCheck::Cli::HelpCommand
- Defined in:
- lib/git-health-check/cli/help_command.rb
Instance Method Summary collapse
- #execute(view) ⇒ Object
-
#initialize(parser) ⇒ HelpCommand
constructor
A new instance of HelpCommand.
Constructor Details
#initialize(parser) ⇒ HelpCommand
Returns a new instance of HelpCommand.
6 7 8 |
# File 'lib/git-health-check/cli/help_command.rb', line 6 def initialize(parser) @parser = parser end |
Instance Method Details
#execute(view) ⇒ Object
10 11 12 13 |
# File 'lib/git-health-check/cli/help_command.rb', line 10 def execute(view) view.output(@parser.to_s) view.report_success end |