Sha256: d17c173d82fc9ea5af338b7d70bf0759bcda3e98b8c3642945a4df72d703518a
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
require 'thor' require 'foodie' require 'foodie/generators/recipe' module Foodie class CLI < Thor desc "portray ITEM", "Determines if a piece of food is gross or delicious" def portray(name) puts Foodie::Food.portray(name) end desc "pluralize", "Pluralizes a word" method_option :word, aliases: "-w" def pluralize puts Foodie::Food.pluralize(options[:word]) end desc "recipe", "Generate a recipe scaffold" def recipe(group, name) Foodie::Generators::Recipe.start([group, name]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foodie_sreeram-0.1.1 | lib/foodie/cli.rb |
foodie_sreeram-0.1.0 | lib/foodie/cli.rb |