Sha256: 6c6051a0a9751e35e603c9e78b55a96ab04eb9bc7de1e0c814d5fa05a8980448

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

module Carbon
  module Cli
    def execute(*)
      Shell.init
      $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 = File.read(dotfile).strip).present?
    ::Carbon.key = key
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carbon-1.0.4 lib/carbon/cli.rb