Sha256: 9d2a9c40e4e1704007df81738173ffd9fd2f71cc3cf8e3504c0869b602bd29ad

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

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

  require 'app/setup'
  Pakyow::App.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-0.10.2 lib/commands/console.rb
pakyow-0.10.1 lib/commands/console.rb
pakyow-0.10.0 lib/commands/console.rb