Sha256: fd54ccf925ff46f2367d3b7d740c4e1a5ea1d538fa158940a0d856be8b6460ae

Contents?: true

Size: 381 Bytes

Versions: 20

Compression:

Stored size: 381 Bytes

Contents

class Jets::Commands::Console
  attr_reader :environment

  def initialize(environment)
    @environment = environment
  end

  def run
    puts Jets::Booter.message

    # Thanks: https://mutelight.org/bin-console
    require "irb"
    require "irb/completion"

    ARGV.clear # https://stackoverflow.com/questions/33070092/irb-start-not-starting/33136762
    IRB.start
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
jets-4.0.12 lib/jets/commands/console.rb
jets-4.0.11 lib/jets/commands/console.rb
jets-4.0.10 lib/jets/commands/console.rb
jets-4.0.9 lib/jets/commands/console.rb
jets-4.0.8 lib/jets/commands/console.rb
jets-4.0.7 lib/jets/commands/console.rb
jets-4.0.6 lib/jets/commands/console.rb
jets-4.0.5 lib/jets/commands/console.rb
jets-4.0.4 lib/jets/commands/console.rb
jets-4.0.3 lib/jets/commands/console.rb
jets-4.0.2 lib/jets/commands/console.rb
jets-4.0.1 lib/jets/commands/console.rb
jets-4.0.0 lib/jets/commands/console.rb
jets-3.2.2 lib/jets/commands/console.rb
jets-3.2.1 lib/jets/commands/console.rb
jets-3.2.0 lib/jets/commands/console.rb
jets-3.1.5 lib/jets/commands/console.rb
jets-3.1.4 lib/jets/commands/console.rb
jets-3.1.3 lib/jets/commands/console.rb
jets-3.1.2 lib/jets/commands/console.rb