Sha256: defe227b13bf1ba8c9e686d607d44b4ecc47edae025fcb21d2893211486ba9b0
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 trap('INT') do |status| exit! 128 + status end require 'tempfile' require 'unparser/cli' buff = [] flag_stdin = ARGV.delete('-') if flag_stdin while line = STDIN.gets buff << line end end if flag_stdin Tempfile.open('temp') { |file| file.print(buff.join) file.rewind exit Unparser::CLI.run(ARGV + [file.path]) } else exit Unparser::CLI.run(ARGV) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unparser-cli_wrapper-0.1.1 | bin/ruby-unparse-utility-wrapped |
unparser-cli_wrapper-0.1.0 | bin/ruby-unparse-wrapped |