Class: Mysh::HelpCommand

Inherits:
Action show all
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

Action::ACTIONS_PATH

Instance Attribute Summary

Attributes inherited from Action

#description, #name

Instance Method Summary collapse

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