Sha256: 1a71b60835dbf7a48a46eeecc4120f0cde7990cbcca1041ab2bdc745f1823a4a

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

#!/usr/bin/env ruby
begin
  require 'rubygems'
rescue LoadError
end

require 'veewee'

ENV["VEEWEE_LOG"] = "debug" if ARGV.include?('--debug')
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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veewee-0.3.12 bin/veewee
veewee-0.3.11 bin/veewee
veewee-0.3.10 bin/veewee
veewee-0.3.9 bin/veewee