Class: HammerCLI::FullHelpCommand

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

Defined Under Namespace

Classes: MDAdapter, TxtAdapter

Instance Method Summary collapse

Instance Method Details

#executeObject



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

def execute
  @adapter = option_md? ? MDAdapter.new : TxtAdapter.new
  HammerCLI.context[:full_help] = true
  @invocation_paths = {}
  print_heading
  print_help
  HammerCLI.context[:full_help] = false
  HammerCLI::EX_OK
end