e11bits,
@e11bits@fosstodon.org avatar

Want to change a file with structured data from json, yaml or toml to any of those formats? E.g. a config file from toml to yaml?

I think one of the easiest way to do this is using the tool convfmt.

If you have 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.

mykhaylo,
@mykhaylo@fosstodon.org avatar

@e11bits no rust required between json, yaml and edn:

https://github.com/borkdude/jet

e11bits,
@e11bits@fosstodon.org avatar

@mykhaylo I had #rust installed already, so this was ok. The #emacs integration with jet through the jet emacs packages looks great. But jet does not seem to support toml? I have to admit I have never heard of edn?

mykhaylo,
@mykhaylo@fosstodon.org avatar

@e11bits edn is amazing :)

e11bits,
@e11bits@fosstodon.org avatar

@mykhaylo I bet 😄

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines