Sha256: 8d816d86a211a32aedc651383305b4aa4fc93a3fd5790ff844c80252075eb44a

Contents?: true

Size: 304 Bytes

Versions: 26

Compression:

Stored size: 304 Bytes

Contents

#!/usr/bin/env ruby

require 'json'

STDIN.each_line do |line|
  begin
    object = JSON.parse(line)
    symbolized_object = {}
    object.each do |k, v|
      symbolized_object[k.to_sym] = v
    end
    puts format(ARGV[0], symbolized_object)
  rescue => error
  # $stderr.puts error.message
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-json-interpolate
ix-cli-0.0.26 bin/ix-json-interpolate
ix-cli-0.0.25 bin/ix-json-interpolate
ix-cli-0.0.24 bin/ix-json-interpolate
ix-cli-0.0.23 bin/ix-json-interpolate
ix-cli-0.0.22 bin/ix-json-interpolate
ix-cli-0.0.21 bin/ix-json-interpolate
ix-cli-0.0.20 bin/ix-json-interpolate
ix-cli-0.0.19 bin/ix-json-interpolate
ix-cli-0.0.18 bin/ix-json-interpolate
ix-cli-0.0.17 bin/ix-json-interpolate
ix-cli-0.0.16 bin/ix-json-interpolate
ix-cli-0.0.15 bin/ix-json-interpolate
ix-cli-0.0.14 bin/ix-json-interpolate
ix-cli-0.0.13 bin/ix-json-interpolate
ix-cli-0.0.12 bin/ix-json-interpolate
ix-cli-0.0.11 bin/ix-json-interpolate
ix-cli-0.0.10 bin/ix-json-interpolate
ix-cli-0.0.9 bin/ix-json-interpolate
ix-cli-0.0.7 bin/ix-json-interpolate