Class: Mysh::HelpCommand

Inherits:
Action show all
Defined in:
lib/mysh/internal/help.rb

Overview

The mysh internal help command.

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



29
30
31
32
# File 'lib/mysh/internal/help.rb', line 29

def process_command(input)
  args = input.args
  HELP[args[0] || ""].process_command(args)
end