Sha256: b6434961abf4fe6f5b551aae24225db8d17c8d627fdbf04e36dc321f9e90bdd7

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

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


cmd = CommandLion.command.new do
  description "This is an example command for debugging!"
  flags do
    short "-e"
    long  "--example"
  end

  before do
    puts "Before"
  end

  action do
    puts "Action"
  end

  after do
    puts "After"
  end

  option :rainbow do
    flags do
      short "-r"
      long  "--rainbow"
    end
    action do
      require 'lolize/auto'
    end
  end
end

binding.pry

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
command_lion-2.0.1 examples/debug.rb
command_lion-2.0.0 examples/debug.rb