Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 28 lines (20 sloc) 0.535 kB
7db5231 @jedi4ever temporary backup
authored
1 #!/usr/bin/env ruby
72b12ad @ccaum Use rubygems if available
ccaum authored
2 begin
3 require 'rubygems'
4 rescue LoadError
5 end
6
7db5231 @jedi4ever temporary backup
authored
7 require 'veewee'
8
9 env = Veewee::Environment.new
10
11 begin
cd37b9a @jedi4ever first fix or ui element output
authored
12 # Begin logging
13 env.ui.info("veewee") { "`veewee` invoked: #{ARGV.inspect}" }
14
15 # Disable color if the proper argument was passed
16 shell = ARGV.include?("--no-color") ? Thor::Shell::Basic.new : Thor::Base.shell.new
17
18 # Attach the UI
19 env.ui = ::Veewee::UI::Shell.new(env, shell)
20 env.load!
21
22 # Start the CLI
7db5231 @jedi4ever temporary backup
authored
23 ::Veewee::CLI.start(ARGV,:env => env)
cd37b9a @jedi4ever first fix or ui element output
authored
24
7db5231 @jedi4ever temporary backup
authored
25 rescue Veewee::Error => e
04859f8 @jedi4ever raise Veewee::Error instead of exiting
authored
26 env.ui.error "#{e}"
cd37b9a @jedi4ever first fix or ui element output
authored
27 end
Something went wrong with that request. Please try again.