nix/scripts/common/bin/k8s-yaml-diff

9 lines
162 B
Text
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
f2="$1"; shift
nvim -d <(k8s-yaml-sort "$f1") <(k8s-yaml-sort "$f2")