nix/home/scripts/common/bin/yamldiff

9 lines
196 B
Plaintext
Raw Normal View History

2023-09-05 13:52:52 -05:00
#!/usr/bin/env bash
[ "$#" -lt 2 ] && echo "Need two filenames." && exit 1
f1="$1"; shift; echo "$f1" >&2
f2="$1"; shift; echo "$f2" >&2
nvim -d <(yq . "$f1" | jq -S .) <(yq . "$f2" | jq -S .)