class Thor

def command_exists?(command_name) #:nodoc:

:nodoc:
Boolean:: +true+ if the command exists, +false+ otherwise.
==== Returns

command_name:: The name of the command to check for existence.
==== Parameters

Checks if a specified command exists.
def command_exists?(command_name) #:nodoc:
  commands.keys.include?(normalize_command_name(command_name))
end