Sha256: e84447fb90d74ce4913877ddb7d889fc78f01a3b4d39d7ae76b3eb155c7320e6

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "grumlin"
require "irb"

Grumlin.configure do |config|
  config.url = ENV["GREMLIN_URL"] || "ws://localhost:8182/gremlin"
end

Async do
  g = Grumlin::Traversal.new

  IRB.setup(nil)
  workspace = IRB::WorkSpace.new(binding)
  irb = IRB::Irb.new(workspace)
  irb.eval_input
rescue StandardError
  raise
ensure
  Grumlin.config.default_pool.close
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grumlin-0.5.1 bin/console
grumlin-0.5.0 bin/console
grumlin-0.4.0 bin/console
grumlin-0.3.0 bin/console