set -euo pipefail
example_work=$(mktemp -d "${TMPDIR:-/tmp}/jq-yq-example.XXXXXX")
trap 'rm -rf -- "$example_work"' EXIT
cd "$example_work"
mkdir data
cat > data/types.yaml <<'JYQ_INPUT_1'
plain: hello
number: 12
quoted: "12"
enabled: true
nothing: null
word: on
JYQ_INPUT_1

yq -o=json -I=0 '.number' data/types.yaml | jq -r 'type'
