Sha256: ea32eb0cc717abc50069f6b8a3e281f608c56197e01a6e791d917c787fde4cca

Contents?: true

Size: 177 Bytes

Versions: 2

Compression:

Stored size: 177 Bytes

Contents

# frozen_string_literal: true

require_relative '../lib/tty-command'

cmd = TTY::Command.new

out, _ = cmd.run("env | grep FOO", env: { 'FOO' =>'hello'})

puts "Result: #{out}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tty-command-0.9.0 examples/env.rb
tty-command-0.8.2 examples/env.rb