Class: Nutella::Help

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

Instance Method Summary collapse

Instance Method Details

#run(args = nil) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/commands/help.rb', line 8

def run(args=nil)
  message=''
  Dir["#{File.dirname(__FILE__)}/*.rb"].each do |file|
    message += add_cmd_help(file)
  end
  console.info message
  console.success 'For more details on individual commands, see https://github.com/nutella-framework/nutella_framework/wiki/Nutella-Command-Line-Interface'
end