mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-11-07 08:14:02 +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) ;;
|
||||
esac
|
||||
|
||||
yq --prettyPrint --indent 2 "${args[@]}"
|
||||
yq --prettyPrint --indent 4 "${args[@]}" \
|
||||
| sed -e ':l' -e 's/^\(\t*\) /\1\t/g; t l'
|
||||
return $?
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user