omissis/go-jsonschema

View on GitHub
scripts/format-json.sh

Summary

Maintainability
Test Coverage
#!/bin/sh

set -e
set -o errexit -o nounset

find . -name "*.json" -type f -exec sh -c 'jq -M . "$1" > "$1".tmp' shell {} \; -exec mv {}.tmp {} \;