Sha256: ca4fa7c291d77c1c03299cb435fdda326ecb9f34d72882d4d90b01de413876ff

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

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

CommandLion::App.run do

  name "Flipr"
  version "1.0.0"
  description "Flipping tables in terminals made easy!"

  command :flip do
    description "Flip a table."
    flag "--flip"

    flips = ["[ ╯ '□']╯︵┻━┻)", "[ ╯ಠ益ಠ]╯彡┻━┻)", "[ ╯´・ω・]╯︵┸━┸)"]

    action do
      options[:count].argument.times do
        puts flips.sample 
      end
    end

    option :count do
      default 3
      description "Specify the number of flips ( default: #{default} )"
      type :integer
      flag "--count"
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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