Class: HammerCLI::FullHelpCommand

Inherits:
AbstractCommand show all
Defined in:
lib/hammer_cli/full_help.rb

Defined Under Namespace

Classes: MDAdapter, TxtAdapter

Instance Method Summary collapse

Methods inherited from AbstractCommand

#adapter, build_options, #exception_handler, extend_help, #help, help, #initialize, #interactive?, option_builder, output, #output, output_definition, #output_definition, #parent_command, #parse, #run, validate_options, #validate_options

Methods included from Subcommand

included

Constructor Details

This class inherits a constructor from HammerCLI::AbstractCommand

Instance Method Details

#executeObject



7
8
9
10
11
12
# File 'lib/hammer_cli/full_help.rb', line 7

def execute
  @adapter = option_md? ? MDAdapter.new : TxtAdapter.new
  print_heading
  print_help
  HammerCLI::EX_OK
end