Class: CTT::Cli::Command::Help

Inherits:
Base show all
Defined in:
lib/cli/commands/help.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CTT::Cli::Command::Base

Instance Method Details

#runObject



5
6
7
8
9
10
11
# File 'lib/cli/commands/help.rb', line 5

def run
  @commands = @runner.commands
  @commands.each do |command, details|
    say(details["usage"], :green)
    say("\t#{details["desc"]}\n")
  end
end