Class: Gts::HelpCommand

Inherits:
Command show all
Defined in:
lib/gts/commands/help_command.rb

Instance Attribute Summary

Attributes inherited from Command

#args

Instance Method Summary collapse

Methods inherited from Command

execute, known_commands_descriptions, register

Instance Method Details

#executeObject



9
10
11
12
13
# File 'lib/gts/commands/help_command.rb', line 9

def execute
  Gts::Command.known_commands_descriptions.map { |k, v|
    "#{k.to_s.ljust(30)} - #{v}" 
  }.join("\n")
end