1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2025-10-17 19:41:01 +00:00

Default to no color for bin/json. Instead, output actual valid JSON by default

This commit is contained in:
Holger Just 2016-09-14 16:38:52 +02:00
parent 1aa5a96596
commit 90dcd7367e

View File

@ -34,5 +34,5 @@ rescue JSON::ParserError => err
exit 1
end
colorize = !ARGV.include?('--no-color') && STDOUT.tty?
colorize = ARGV.include?('--color')
print_json(json, colorize)