Method: Jets::CLI::Exec#run

Defined in:
lib/jets/cli/exec.rb

#runObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/jets/cli/exec.rb', line 3

def run
  if @options[:command].empty?
    Repl.new(options).start
  else
    Command.new(options).run
  end
rescue Jets::CLI::Call::Error => e
  puts "ERROR: #{e.message}".color(:red)
  abort "Unable to find the function.  Please check the function name and try again."
end