Sha256: 5881ae71f9bf6ffc9ceb2cd130f539d974d515cb5e690663c2198df500facd0e

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

require 'thor'
require 'sajad_foodie'
require 'sajad_foodie/generators/recipe'

module SajadFoodie
  class CLI < Thor
    desc 'portray ITEM', 'Determines if a piece of food is gross, delicious, or meh'
    def portray(name)
      puts SajadFoodie::Food.portray(name)
    end

    desc 'pluralize', 'Pluralizes a word'
    method_option :word, aliases: '-w'
    def pluralize
      puts SajadFoodie::Food.pluralize(options[:word])
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sajad_foodie-0.1.1 lib/sajad_foodie/cli.rb