Sha256: 03eeece989ad294b9fbf97cb5578e4287c438adf3e323c892225d822bcacef69

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

if ARGV.first == '--help' || ARGV.first == '-h'
  puts File.open(File.join(CORE_PATH, 'commands/USAGE-CONSOLE')).read
else
  $:.unshift(Dir.pwd)

  require File.join('config', 'application')
  PakyowApplication::Application.stage(ARGV.first)
  
  def reload
    puts "Reloading..."
    Pakyow.app.reload
  end
  
  require 'irb'
  ARGV.clear
  IRB.start
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pakyow-core-0.7.2 pakyow-core/lib/commands/console.rb
pakyow-core-0.7.1 pakyow-core/lib/commands/console.rb
pakyow-core-0.7.0 pakyow-core/lib/commands/console.rb