Sha256: 9c04c63ef50f8fc9df36c29a22c35c661a94d60c7f1905dee08f390f7986b84c

Contents?: true

Size: 145 Bytes

Versions: 10

Compression:

Stored size: 145 Bytes

Contents

# encoding: utf-8

require 'tty-command'

cmd = TTY::Command.new

out, err = cmd.run(:echo, "$FOO", env: { foo: 'hello'})

puts "Result: #{out}"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tty-command-0.7.0 examples/env.rb
tty-command-0.6.0 examples/env.rb
tty-command-0.5.0 examples/env.rb
tty-command-0.4.0 examples/env.rb
tty-command-0.3.3 examples/env.rb
tty-command-0.3.2 examples/env.rb
tty-command-0.3.1 examples/env.rb
tty-command-0.3.0 examples/env.rb
tty-command-0.2.0 examples/env.rb
tty-command-0.1.0 examples/env.rb