require "thor" require "eman" module Eman class CLI < Thor desc "controller", "name a controller" def controller generator = Eman::Generator.new('Controller') generator.run end desc "service", "name a service" def service generator = Eman::Generator.new('Service') generator.run end desc "model", "name a model" def model generator = Eman::Generator.new('Model') generator.run end end end Eman::CLI.start(ARGV)