Sha256: 2aab4617a7b0b76b0221e7784b9107f0dc5fc0545532022812208d9c02699619

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 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_client&.disconnect
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grumlin-0.2.0 bin/console