module Carbon
  module Cli
    def execute(*)
      $emitters = {}
      IRB.start_session(Shell.new.get_binding)
    end 
    module_function :execute
  end
end

require 'carbon/cli/environment'
require 'carbon/cli/shell'
require 'carbon/cli/emitter'
require 'carbon/cli/irb'
require 'conversions'

module Carbon
  module Cli
    def execute(*)
      $emitters = {}
      IRB.start_session(Shell.new.get_binding)
    end 
    module_function :execute
  end
end

require 'carbon/cli/environment'
require 'carbon/cli/shell'
require 'carbon/cli/emitter'
require 'carbon/cli/irb'
require 'conversions'

if File.exist?(dotfile = File.join(ENV['HOME'], '.carbon_middleware'))
  if (key = IO.readlines(dotfile).first).present?
    ::Carbon.key = key.strip
  end
end

Use key from ~/.carbon_middleware if it's there
Use key from ~/.carbon_middleware if it's there
