Sha256: 15f35448ba6ae5ee46f57b8b8dc98a0cda4124a17de6a69b936336733ec1e438
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
class Ey::Core::Cli::Console < Ey::Core::Cli::Subcommand title "console" summary "Start an interactive console" option :execute_command, short: "e", long: "command", description: "Command to execute", argument: "command" def handle if command = option(:execute_command) core_client.instance_eval(command) else Pry.config.prompt = proc { |obj, nest_level, _| "ey-core:> " } core_client.pry end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.1.2 | lib/ey-core/cli/console.rb |
ey-core-3.1.1 | lib/ey-core/cli/console.rb |
ey-core-3.1.0 | lib/ey-core/cli/console.rb |