Sha256: 75358e917a20a1ce21cb22292dd9bdeb3c233a7bfd76bec662b7644dc4d14066

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8
#
# USAGE: lineescapezsh [options] files ...

require "pp"
require "optparse"
require "rubygems"
#gem "tefil"
require "tefil.rb"
gem     "builtinextension"
require "string/escapezsh"

## option analysis
OPTIONS = {}
op = OptionParser.new
op.on("-o"    , "--overwrite"    , "Overwrite."){    OPTIONS[:overwrite] = true}
op.parse!(ARGV)

module Tefil
  def self.process_stream(in_io, out_io)
    in_io.each do |line|
      out_io.puts line.escape_zsh
    end
  end
end

OPTIONS[:overwrite] ||= false

Tefil.run(ARGV, OPTIONS[:overwrite])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tefil-0.0.3 bin/lineescapezsh