lib/napa/cli.rb in napa-0.1.23 vs lib/napa/cli.rb in napa-0.1.24

- old
+ new

@@ -1,11 +1,16 @@ require 'thor' require 'napa/generators' module Napa class CLI < Thor + desc "version", "Shows the Napa version number" + def version + say Napa::VERSION + end + register(Generators::ScaffoldGenerator, 'new', 'new <app_name> [app_path]', - 'Create a new Napa scaffold') - register(Generators::ApiGenerator, 'generate', 'generate api <generator_name> <name>', - 'Create a Grape API and model') + 'Create a scaffold for a new Napa service') + register(Generators::ApiGenerator, 'generate:api', 'generate:api <api_name>', + 'Create a Grape API, Model and Entity') end end