nickel-lang / organist

Control all your tooling from a single console
MIT License
421 stars 21 forks source link

How to track old files not generated with Nickel alongside new Nickel-generated files? #183

Closed HariAmoor-professional closed 10 months ago

HariAmoor-professional commented 10 months ago

My organization needs to maintain a Helm repo, alongside some Pulumi YAML, in our configuration. We'd like to autogenerate everything with Nix and Nickel, but I'm trying to understand how to import an existing YAML file into Nickel (given Nix store path) and deserialize it to play around with in the language.

Is there some solution for this either in Nickel stdlib or organist?

YorikSar commented 10 months ago

You can import existing YAML directly into Nickel with import statement, see section “Export & Import” in https://nickel-lang.org/getting-started.

HariAmoor-professional commented 10 months ago

Exactly what I need, thanks!

yannham commented 10 months ago

Re-reading the getting started page, I just realized it's not up to date with the latest CLI syntax, just so you know! Going to fix that right away.