Class: Mysh::HelpCommand
- Defined in:
- lib/mysh/internal/actions/help.rb
Overview
-
mysh/internal/actions/help.rb – The mysh internal help command.
Constant Summary
Constants inherited from Action
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#process_command(input) ⇒ Object
Execute a help command by routing it to a sub-command.
Methods inherited from Action
#action_info, #initialize, #process_quick_command, #short_name
Constructor Details
This class inherits a constructor from Mysh::Action
Instance Method Details
#process_command(input) ⇒ Object
Execute a help command by routing it to a sub-command.
Endemic Code Smells
-
:reek:UtilityFunction
30 31 32 33 |
# File 'lib/mysh/internal/actions/help.rb', line 30 def process_command(input) args = input.args HELP[args[0] || ""].process_command(args) end |