module Jazz class CLI < Thor desc "Jazz generate [generator] [name]", "call a generator" def generate(requested_generator, name, *args) ARGV.delete('generate') if(ARGV.include?(requested_generator)) ARGV.delete(requested_generator) ActiveSupport::Inflector.constantize("Jazz::#{requested_generator.capitalize}Generator").start end end end end