Class: CC::CLI::Help

Inherits:
Command show all
Defined in:
lib/cc/cli/help.rb

Constant Summary

Constants inherited from Command

Command::CODECLIMATE_YAML

Instance Method Summary collapse

Methods inherited from Command

command_name, #execute, #fatal, #initialize, #require_codeclimate_yml, #say, #warn

Constructor Details

This class inherits a constructor from CC::CLI::Command

Instance Method Details

#runObject



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

def run
  say "Usage: codeclimate COMMAND ...\n\nAvailable commands:\n"
  commands.each do |command|
    say "    #{command}"
  end
end