Sha256: 35d7feb86b73a83e3d84388f26e3c5a208c30fd6b0f0e5fe011a124aa6b11efd

Contents?: true

Size: 603 Bytes

Versions: 6

Compression:

Stored size: 603 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'command_lion'
require 'pry'

CommandLion::App.run do

  name "Rainbow Hello"
  version "1.0.0"
  description "A typical, contrived example application."

  command :hello do
    description "A simple command to say hello!"
    
    type :string
    flag "hello"
    
    default "world"

    action do
      puts "Hello #{argument}!"
    end
    
    option :rainbow do
    	description "STDOUT is much prettier with rainbows!"
      
			flag "--rainbow"
      
			action do
        require 'lolize/auto'
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
command_lion-1.0.4 examples/readme.rb
command_lion-1.0.3geff examples/readme.rb
command_lion-1.0.3 examples/readme.rb
command_lion-1.0.2 examples/readme.rb
command_lion-1.0.1 examples/readme.rb
command_lion-1.0.0 examples/readme.rb