Sha256: 6162aba9026f2a3e2d2e2c57968b712712e949ff0cf77ed95fc2e7c255da1c18

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 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}"
    exit 1
  rescue Exception => ex
    puts "Something blew up Mccloud. Time for McGuyver:"
    puts ""
    puts "#{ex}"
    puts ex.backtrace
    exit 1
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mccloud-0.1.1 bin/mccloud
mccloud-0.0.28 bin/mccloud
mccloud-0.0.27 bin/mccloud
mccloud-0.0.26 bin/mccloud
mccloud-0.0.25 bin/mccloud
mccloud-0.0.24 bin/mccloud
mccloud-0.0.23 bin/mccloud