Sha256: 2e47b19e7331e1097630baf466c1a82268d6e4543caffae6af636f421d0f6693

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 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"

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

    action do
      puts "Hello #{argument}!"
    end
    
    option :rainbow do
      flags do
        short "-r"
        long  "--rainbow"
      end
      action do
        require 'lolize/auto'
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
command_lion-1.0.4 examples/example.rb
command_lion-1.0.3geff examples/example.rb
command_lion-1.0.3 examples/example.rb