This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/k8s-yaml-diff

9 lines
162 B
Plaintext
Raw Normal View History

2020-02-10 21:25:23 -06: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")