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