Closed elibroftw closed 4 months ago
Hello, when you run yq as a python module, it expects YAML. To parse TOML, you have to use the tomlq
executable:
tomlq '.workspace[]' Cargo.toml
That's really bad for bash scripting and UX. I decided to use dasel instead just for the one case where a toml table is empty. I use the yq package for everything else.
PRs and support donations are welcome.
python3 -m yq '.workspace[]' Cargo.toml
jq: error (at:1): Cannot index array with string "workspace