Class: HammerCLI::ShellMainCommand
- Inherits:
-
AbstractCommand
- Object
- Clamp::Command
- AbstractCommand
- HammerCLI::ShellMainCommand
- Defined in:
- lib/hammer_cli/shell.rb
Defined Under Namespace
Classes: AuthCommand, ExitCommand, HelpCommand
Class Method Summary collapse
Methods inherited from AbstractCommand
#adapter, #exception_handler, #execute, inherited_output_definition, #initialize, output, #output, #output_definition, output_definition, #parent_command, #parse, remove_subcommand, #run, subcommand, subcommand!, #validate_options, validate_options
Constructor Details
This class inherits a constructor from HammerCLI::AbstractCommand
Class Method Details
.load_commands(main_cls) ⇒ Object
80 81 82 83 84 85 |
# File 'lib/hammer_cli/shell.rb', line 80 def self.load_commands(main_cls) cmds = main_cls.recognised_subcommands.select do |sub_cmd| !(sub_cmd.subcommand_class <= HammerCLI::ShellCommand) end self.recognised_subcommands.push(*cmds) end |