e11bits, Want to change a file with structured data from json, yaml or toml to any of those formats? E.g. a #hugo config file from toml to yaml?
I think one of the easiest way to do this is using the #rust tool convfmt.
If you have #rust installed, installing convfmt is just as quick as:
cargo install convfmt
After that the transformation from toml to yaml is just this:
convfmt -f toml -t yaml < hugo.toml > hugo.yaml
Helps if you start from an example project with an hugo.toml config.
Add comment