Create a command:
#!/bin/bash [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
INPUT=$(cat /dev/stdin) python -c "import json; print(json.dumps(${INPUT}))" | python -m json.tool
Good Idea but it doesn’t work for me as my input is not valid json.
I have however cooked up a tiny bundle using YAPF that works and which I will release shortly ☺️ .
·t