Sha256: d525021b9e898b09ad22681dcaf3bf34baab071a714523f7690329aa749f6b23

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

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

CommandLion::App.run do

  name "File Readr"

  command :read do
    description "Read the lines from a given file back to the screen."
    flag "--read"
    type :string
    
    action do
      IO.foreach(argument) do |line|
        print line
      end 
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

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