nickel-lang / organist

Control all your tooling from a single console
MIT License
361 stars 20 forks source link

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

Closed HariAmoor-professional closed 5 months ago

HariAmoor-professional commented 5 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 5 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 5 months ago

Exactly what I need, thanks!

yannham commented 5 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.