Sha256: cfd45a153bdcbf890c047ffa7ee1049d57d6ae002ebec6d7d540db3821ce6c50

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 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'
  Pakyow::App.stage(ARGV.first)

  def reload
    puts "Reloading..."
    Pakyow.app.reload
  end

  require 'irb'
  ARGV.clear
  IRB.start
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pakyow-0.9.1 lib/commands/console.rb
pakyow-0.9.0 lib/commands/console.rb
pakyow-0.8.0 lib/commands/console.rb
pakyow-0.8.rc4 lib/commands/console.rb