#!/usr/bin/env ruby CORE_PATH = File.expand_path('../../lib', __FILE__) if ARGV.first == 'new' ARGV.shift require 'generators/pakyow/app/app_generator' Pakyow::Generators::AppGenerator.start elsif ARGV.first == 'server' ARGV.shift require 'commands/server' elsif ARGV.first == 'console' ARGV.shift require 'commands/console' elsif ARGV.first == '--help' || ARGV.first == '-h' || ARGV.empty? puts File.open(File.join(CORE_PATH, 'commands/USAGE')).read end