Sha256: cf0d608a123c3244db17ea20e6494498314f186e9acbd50d9935aab5905c8135
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 KB
Contents
require 'rubygems' require 'cli-colorize' require 'thor/group' require 'hirb' require File.dirname(__FILE__) + '/jam' module Candle module Generators class Help < Jam include CLIColorize CLIColorize.default_color = :red RENDER_OPTIONS = { :fields => [:category,:command,:description] } # Add this generator to our candle Candle::Generators.add_generator(:help, self) # Define the source root def self.source_root; File.expand_path(File.dirname(__FILE__)); end def self.banner; "candle help"; end # Include related modules include Thor::Actions include Candle::Generators::Actions desc "Description:\n\n\tcandle help screen" argument :name, :default => "" def create_help @developer = "eiffel" @created_on = Date.today.to_s puts colorize( "Candle Version: #{Candle::Version::STRING}", { :foreground => :red, :background => :white, :config => :underline } ) puts puts "Candle is a wax iOS code generators tool." puts puts colorize("Generator Options") opt = [{ :category => "generators", :command => "candle blank todo", :description => "generate a wax blank iOS project"} ] View.render(opt, RENDER_OPTIONS) puts end end # Search end # Generators end # Candle
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
candle-0.0.4 | lib/candle/generators/help.rb |
candle-0.0.3 | lib/candle/generators/help.rb |
candle-0.0.2 | lib/candle/generators/help.rb |
candle-0.0.1 | lib/candle/generators/help.rb |