Sha256: c58f3dc228b795e25c2b37b4321d312889ce02dea48444eaaefba2e593682406
Contents?: true
Size: 202 Bytes
Versions: 2
Compression:
Stored size: 202 Bytes
Contents
# frozen_string_literal: true require 'pathname' require_relative '../lib/tty-command' cmd = TTY::Command.new cli = Pathname.new('examples/cli') out, _ = cmd.run(cli, input: "Piotr\n") puts "#{out}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.9.0 | examples/stdin_input.rb |
tty-command-0.8.2 | examples/stdin_input.rb |