Sha256: e4b9664afb6fbf97dff7370b364fc5c8fb8c171ec76e19be0d442e5b067b33e1

Contents?: true

Size: 246 Bytes

Versions: 24

Compression:

Stored size: 246 Bytes

Contents

#!/usr/bin/env ruby

require 'json'

# this script echos the command that invoked it back as a 
# JSON structure for testing

argv = ARGV.clone

data = {
  '$0' => $0,
  'ARGV' => argv,
  'stdin' => $stdin.read,
}

puts JSON.pretty_generate(data)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cmds-0.2.11 test/echo_cmd.rb
cmds-0.2.10 test/echo_cmd.rb
cmds-0.2.9 test/echo_cmd.rb
cmds-0.2.8 test/echo_cmd.rb
cmds-0.2.7 test/echo_cmd.rb
cmds-0.2.6 test/echo_cmd.rb
cmds-0.2.5 test/echo_cmd.rb
cmds-0.2.4 test/echo_cmd.rb
cmds-0.2.3 test/echo_cmd.rb
cmds-0.2.2 test/echo_cmd.rb
cmds-0.2.1 test/echo_cmd.rb
cmds-0.2.0 test/echo_cmd.rb
cmds-0.1.5 test/echo_cmd.rb
cmds-0.1.4 test/echo_cmd.rb
cmds-0.1.3 test/echo_cmd.rb
cmds-0.1.2 test/echo_cmd.rb
cmds-0.1.1 test/echo_cmd.rb
cmds-0.1.0 test/echo_cmd.rb
cmds-0.0.9 test/echo_cmd.rb
cmds-0.0.8 test/echo_cmd.rb