Sha256: 6b113cda35678fe7618a0e89d1135b61a616292e4927b2d1b0eaa6329e4fd0c9
Contents?: true
Size: 242 Bytes
Versions: 2
Compression:
Stored size: 242 Bytes
Contents
# frozen_string_literal: true require_relative '../lib/tty-command' cmd = TTY::Command.new cmd.run("i=0; while true; do i=$[$i+1]; echo 'hello '$i; sleep 1; done") do |out, err| if out =~ /.*5.*/ raise ArgumentError, 'BOOM' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.9.0 | examples/output.rb |
tty-command-0.8.2 | examples/output.rb |