Sha256: 0f967800ef9db77436bd86881a1b0ad7b6a1e340ac12989351bfdd6357cfdfda

Contents?: true

Size: 509 Bytes

Versions: 5

Compression:

Stored size: 509 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')

require 'rubygems'
require 'carbon'
require 'carbon/cli'
begin
  # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
  failure = Carbon::Cli.execute(ARGV.dup)
  Kernel.exit(failure ? 1 : 0)
rescue SystemExit => e
  Kernel.exit(e.status)
rescue Exception => e
  STDERR.puts("#{e.message} (#{e.class})")
  STDERR.puts(e.backtrace.join("\n"))
  Kernel.exit(1)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
carbon-1.0.4 bin/carbon
carbon-1.0.3 bin/carbon
carbon-1.0.1 bin/carbon
carbon-1.0.0 bin/carbon
carbon-0.3.0 bin/carbon