Class: GitHealthCheck::Cli::HelpCommand

Inherits:
GitHealthCheckCommand show all
Defined in:
lib/git-health-check/cli/help_command.rb

Instance Method Summary collapse

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