Sha256: ef525b906e181f04da12c61e4fb554396f6073ce9137c5e5c5af3e4322d887df

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'thor'
require "talltorp_foodie/foodie"
require 'talltorp_foodie/generators/recipe'

module TalltorpFoodie
  class CLI < Thor
    desc "portray ITEM", "Determines if a piece of food is gross or delicious"
    def portray(name)
      puts name
      puts TalltorpFoodie::Foodie.portray(name)
    end

    desc "pluralize", "Pluralizes a word"
    method_option :word, :aliases => "-w"
    def pluralize
      puts TalltorpFoodie::Foodie.pluralize(options[:word])
    end

    desc "recipe", "Generates a recipe scaffold"
    def recipe(group, name)
      TalltorpFoodie::Generators::Recipe.start([group, name])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
talltorp_foodie-0.0.1 lib/talltorp_foodie/cli.rb