-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jq command line tool for manipulating toml files? #645
Comments
It's a structured data format, so looking at what jq does, it seems to me that similar things could be done for TOML. All it needs is somebody to be inspired to write the tool. Could you explain what the practical use cases for such tool would be for you? For jq I can imagine a few use cases easily, JSON being a popular data transport format. To me TOML is a configuration format, making such tool less of a natural fit. One use case that pops to mind for me would be the use of |
There could be -- there isn't one yet AFAIK. Folks are more than welcome to make one! |
I found this: https://github.com/jamesmunns/tomlq Hope it helps! Or maybe you can also contribute. |
Just for the record, a tool like that is usefull (for me) to be able to automate tests against toml files. ( Or either to automate chances in toml files in a more robust way than sedops would do. :) ( So far, "https://crates.io/crates/toml-cli" has been very helpful for test purposes. |
Another useful tool is this: https://github.com/TomWright/dasel It supports JSON, YAML and TOML. |
https://github.com/mikefarah/yq/ is widely used as well |
Didn't know that there are actually two Only the Python one works with TOML. |
Note that the go one can parse but not write toml, here is the documentation page: https://mikefarah.gitbook.io/yq/usage/toml |
@plutonium-239 It's worth nothing this open issue with the Go toml tool: mikefarah/yq#1758 |
For python, there is now toml-cli ( https://github.com/mrijken/toml-cli ). I found it helpful for parinsg pyproject.toml files from the terminal.
|
Hi, I am curious if there could be a CLI tool similar to jq or yq, for conveniently querying and transforming TOML files?
The text was updated successfully, but these errors were encountered: