grafana / cuetsy

Experimental CUE->TypeScript exporter
Apache License 2.0
106 stars 8 forks source link

expression tree printer as a standalone lib? #108

Closed rudifa closed 1 year ago

rudifa commented 1 year ago

In the Cue issue #1710, @sdboyer wrote

... expression tree printer. i plan to turn that into a standalone lib at some point soon ...

How soon would that be?

In the meantime, could you explain briefly how to use funcs exposed by expr.go for this purpose?

sdboyer commented 1 year ago

hi! thanks for asking about this -

i actually did pull it out into a standalone library, here. We haven't done a decent job of documenting it, though, partly because there are still some known issues with the rendering that have just made it difficult to write clean, consistent docs. (Contributions welcome! 😉)

However, what's over there is definitely an improvement over what's here, and there's at least some more guidance on the public, callable surface.

sdboyer commented 1 year ago

closing this as the standalone lib does exist, despite its rough form