module JsonPp
Constants
- VERSION
Public Class Methods
run()
click to toggle source
# File lib/json_pp.rb, line 11 def self.run() if STDIN.tty? puts 'your_command | json [--no-color]' else data = JSON.parse(STDIN.read) if ARGV.include?('--no-color') puts JSON.pretty_generate(data) else require 'ap' ap data end end end
usage()
click to toggle source
# File lib/json_pp.rb, line 7 def self.usage() end