Sha256: 576b0d9c2a33480bf90685a73d28229b982a78e1640bd029751088353b3f6839
Contents?: true
Size: 377 Bytes
Versions: 6
Compression:
Stored size: 377 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/opener/opinion_detectors/base' # STDIN.tty? returns `false` if data is being piped into the current process. if STDIN.tty? input = nil else input = STDIN.read end kernel = Opener::OpinionDetectors::Base.new(:args => ARGV) stdout, stderr, process = kernel.run(input) if process.success? puts stdout else abort stderr end
Version data entries
6 entries across 6 versions & 1 rubygems