Class: HammerCLI::FullHelpCommand
- Inherits:
-
AbstractCommand
- Object
- Clamp::Command
- AbstractCommand
- HammerCLI::FullHelpCommand
- Defined in:
- lib/hammer_cli/full_help.rb
Defined Under Namespace
Classes: MDAdapter, TxtAdapter
Instance Method Summary collapse
Methods inherited from AbstractCommand
#adapter, add_sets_help, build_options, command_extensions, #exception_handler, extend_help, extend_options_help, extend_output_definition, extend_with, help, #help, help_extension_blocks, inherited_command_extensions, #initialize, #interactive?, option_builder, output, #output, output_definition, #output_definition, #parent_command, #parse, #run, use_option, #validate_options, validate_options
Methods included from Subcommand
Constructor Details
This class inherits a constructor from HammerCLI::AbstractCommand
Instance Method Details
#execute ⇒ Object
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 |