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