twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.
https://www.chezmoi.io/
MIT License
13.36k stars 493 forks source link

Explore apple/pkl support #3556

Closed bradenhilton closed 8 months ago

bradenhilton commented 9 months ago

https://pkl-lang.org/Integration with Gohttps://github.com/apple/pklhttps://github.com/apple/pkl-go-examples

I suspect this will inevitably come up as/when it grows in popularity.

Some ideas off the top of my head:

halostatue commented 9 months ago

If it already had support for TS/JS and Elixir, I would be using it for a current work project, despite it being so new to the rest of the world.

One thing to be aware of about pkl is that it is a Turing-complete language, so it is not a perfect fit for how chezmoi sees its configuration files. But it is very exciting (IMO).

twpayne commented 8 months ago

I'm not sure if this is the right fit for chezmoi.

Pickle looks fantastic for complex configuration needs, as does CUE, which solves a similar problem and a bunch of awesome Gophers work on. However, chezmoi's configuration is pretty simple and user-facing so maybe the current JSON/TOML/YAML config options are enough.

I would definitely support adding Pickle template functions, for example the proposed toPklJson and fromPkl, but I would like to hear support from users with problems that can only be solved by using Pickle before adding this.

twpayne commented 8 months ago

Let's wait for reported use cases for Pkl support. For now, I'll close this as "not planned".