In Files

Methods

Class/Module Index [+]

Quicksearch

DO::CLI

Public Instance Methods

start(*args) click to toggle source
# File lib/do/cli.rb, line 5
def start(*args)
  DO::Commands.load_recipes
  args.empty? ? DO::Commands.run_task(:help) : DO::Commands.task_run(*args)
rescue DO::Tasks::NotFound
  puts "\e[31mSorry, \e[1m'%s'\e[0m\e[31m was not found, see available tasks:\e[0m" % args.join(' ')
  puts
  DO::Commands.run_task(:list)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.