Sha256: 3165ffad46845927c8c8efd81f0d0af488f9793a0f673688fc3a1603b0f5a4de

Contents?: true

Size: 390 Bytes

Versions: 26

Compression:

Stored size: 390 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'json'
require 'hirb'

hashes = []

STDIN.each_line do |line|
  if line.include? '}'
    hash = JSON.parse(line)
    puts ''
    puts Hirb::Helpers::Table.render([hash], :resize => false)
  end
end

vertical = false
if ARGV[0] == '-v'
  vertical = true
end

# puts Hirb::Helpers::Table.render(hashes, :resize => false, :vertical => vertical)

Version data entries

26 entries across 26 versions & 1 rubygems

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