Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (20 sloc) 0.535 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/env ruby
begin
  require 'rubygems'
rescue LoadError
end

require 'veewee'

env = Veewee::Environment.new

begin
  # Begin logging
  env.ui.info("veewee") { "`veewee` invoked: #{ARGV.inspect}" }

  # Disable color if the proper argument was passed
  shell = ARGV.include?("--no-color") ? Thor::Shell::Basic.new : Thor::Base.shell.new

  # Attach the UI
  env.ui = ::Veewee::UI::Shell.new(env, shell)
  env.load!

  # Start the CLI
  ::Veewee::CLI.start(ARGV,:env => env)

rescue Veewee::Error => e
  env.ui.error "#{e}"
end
Something went wrong with that request. Please try again.