Sha256: f6260f5221f4300f600602b1d6bde6f4c6982f1b3e22b8d501f6a4b4551f66b2
Contents?: true
Size: 588 Bytes
Versions: 9
Compression:
Stored size: 588 Bytes
Contents
#!/usr/bin/env ruby require 'mccloud' begin # Disable color if the proper argument was passed shell = ARGV.include?("--no-color") ? Thor::Shell::Basic.new : Thor::Base.shell.new # Start the CLI begin env = Mccloud::Environment.new(:cwd => ".") # # Attach the UI env.ui = ::Mccloud::UI::Shell.new(env, shell) ::Mccloud::CLI.start(ARGV,:env => env) rescue Mccloud::Error => ex env.ui.error "#{ex}" rescue Exception => ex puts "Something blew up Mccloud. Time for McGuyver:" puts "" puts "#{ex}" puts ex.backtrace exit 1 end end
Version data entries
9 entries across 9 versions & 1 rubygems