#!/usr/bin/env ruby require 'fileutils' require 'thor' require 'pointrb' require 'pry' require 'debugger' class Default < Thor map '--version' => :version desc "new ", "create directories and files for new project" method_option :verbose, type: :boolean, default: false, aliases: '-v' method_option :layout, type: :string, default: 'default', aliases: '-l' def new(project_name) env = OpenStruct.new env.project_name = project_name env.command_line_options = options PointRb::Api.create_layout(env) end desc "init", "initialize directory structures in system for use of pointrb" def init env = OpenStruct.new PointRb::Api.initialize_pointrb(env) end desc "version", "show version of library" def version PointRb::Api.show_version end end Default.start