bin/console in grumlin-0.1.3 vs bin/console in grumlin-0.2.0

- old
+ new

@@ -3,18 +3,21 @@ require "bundler/setup" require "grumlin" require "irb" +Grumlin.configure do |config| + config.url = ENV["GREMLIN_URL"] || "ws://localhost:8182/gremlin" +end + Async do - client = Grumlin::Client.new("ws://localhost:8182/gremlin", mode: :bytecode) - g = Grumlin::Traversal.new(client) + g = Grumlin::Traversal.new IRB.setup(nil) workspace = IRB::WorkSpace.new(binding) irb = IRB::Irb.new(workspace) irb.eval_input rescue StandardError raise ensure - client.disconnect + Grumlin.config.default_client&.disconnect end