lib/mercurd/cli.rb in mercurd-0.3.0 vs lib/mercurd/cli.rb in mercurd-0.4.0

- old
+ new

@@ -1,9 +1,10 @@ require 'thor' require 'active_support' require 'active_support/core_ext/object' +require 'mercurd/generators/feature' module Mercurd class CLI < Thor desc "zen", "The Zen of Code Reading" def zen @@ -28,8 +29,13 @@ puts "cloc not found" and return if cmd.blank? prefix = "Count Lines of Code" dir = src ? src : '.' ret = `cloc #{dir}` puts [prefix, ret].join("\n\n") + end + + desc "generate [ENTITY]", "Cucumber features generator" + def generate(entity, name) + Mercurd::Generators::Feature.start([entity, name]) end end end