Sha256: 0a6ef1a15cec42ef392779aace1798e674d909974eca61e17958d86b80d16003
Contents?: true
Size: 220 Bytes
Versions: 3
Compression:
Stored size: 220 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, } puts JSON.pretty_generate(data)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cmds-0.0.3 | test/echo_cmd.rb |
cmds-0.0.2 | test/echo_cmd.rb |
cmds-0.0.1 | test/echo_cmd.rb |