gitfetch icon indicating copy to clipboard operation
gitfetch copied to clipboard

Suggestion: move away from TOML?

Open Matars opened this issue 1 year ago • 6 comments

TOML is not a very good option, since it doesn't allow you to source another files. If I want to config this and push it to my dots, I will be pushing token as well. I'd suggest switching to something else. Maybe even plain .conf.

Matars avatar Oct 21 '25 00:10 Matars

Why would you need to source other files (not that i am saying toml is a good option) you can also have multiple toml files like i do in my project tome, but that can also feel clunky.

options:

  • [ ] JSON, cant source files not human readable
  • [ ] INI, very human readable, supported by configparser, but cant source files
  • [ ] YAML, human readable, Indentation-sensitive though, but you can source files and it is not supported by configparser
  • [ ] TOML, current filetype, human readable and supported by configparser but not able to source other files
  • [ ] XML, verbose not human readable, does allow including files (using xinclude), not supported by config parser
  • [ ] ENV, allows using enviorment variables as config? but very plain, does (sometimes) allow sourcing

I think yaml is the best option, except if indentation is a problem

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

@Zeviraty thanks for the extra inputs.

Matars avatar Oct 21 '25 09:10 Matars

Haha, but now we need to choose 😅

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

@Zeviraty i need to look up and study why TOML is a bad option - ill skim over some content today

Matars avatar Oct 21 '25 09:10 Matars

Or maybe why it isnt

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

lets just stick with TOML

Matars avatar Oct 24 '25 00:10 Matars