mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-02-22 19:50:49 +01:00
prettybad: Have yq
output tabs instead of spaces
It's a hack with `sed`, but it's better than nothing.
This commit is contained in:
parent
1cffc910d5
commit
6092fa5bad
@ -207,7 +207,8 @@ formatter_yq_process() {
|
|||||||
*.json) args+=(--output-format json) ;;
|
*.json) args+=(--output-format json) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
yq --prettyPrint --indent 2 "${args[@]}"
|
yq --prettyPrint --indent 4 "${args[@]}" \
|
||||||
|
| sed -e ':l' -e 's/^\(\t*\) /\1\t/g; t l'
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user