Sha256: 5e2eda271f8d09f16be5345c2872101f045ff522b5b218e136b2b928d420e32e

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 Bytes

Contents

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

CommandLion::App.run do

  name "Readr"

  command :read do
    description "Stream arguments read from STDIN back to the screen."
    flag "--read"
    type :stdin_stream
    
    action do
      arguments do |argument|
        puts argument
      end
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
command_lion-2.0.1 examples/read_stdin.rb
command_lion-2.0.0 examples/read_stdin.rb
command_lion-1.0.4 examples/read_stdin.rb
command_lion-1.0.3geff examples/read_stdin.rb
command_lion-1.0.3 examples/read_stdin.rb
command_lion-1.0.2 examples/read_stdin.rb
command_lion-1.0.1 examples/read_stdin.rb
command_lion-1.0.0 examples/read_stdin.rb