mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
13 lines
275 B
Bash
Executable File
13 lines
275 B
Bash
Executable File
GREEN='\033[0;32m'
|
|
NC='\033[0m'
|
|
|
|
echo "${GREEN}---Old---${NC}"
|
|
yq $@ > /tmp/yq-old-output
|
|
cat /tmp/yq-old-output
|
|
|
|
echo "${GREEN}---New---${NC}"
|
|
./yq $@ > /tmp/yq-new-output
|
|
cat /tmp/yq-new-output
|
|
|
|
echo "${GREEN}---Diff---${NC}"
|
|
colordiff /tmp/yq-old-output /tmp/yq-new-output |