Sha256: 6bea3069807da71fcf44351ad95594ddb99818aebda30a158ca4fadd62fe4d58

Contents?: true

Size: 721 Bytes

Versions: 6

Compression:

Stored size: 721 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].arguments do |argument|
        argument.times do
          puts flips.sample 
        end
      end
    end

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

end

Version data entries

6 entries across 6 versions & 1 rubygems

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