Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cue as native data source for gomplate #2212

Closed
kghenderson opened this issue Jan 12, 2023 · 3 comments
Closed

add cue as native data source for gomplate #2212

kghenderson opened this issue Jan 12, 2023 · 3 comments
Labels
FeatureRequest New feature or request Triage Requires triage/attention

Comments

@kghenderson
Copy link

Is your feature request related to a problem? Please describe.
gomplate is a handy utility to process text/templates at command line without needing to compile to go.
this is very useful for simple client-side template generations.
https://gomplate.ca/
https://github.com/hairyhenderson/gomplate

gomplate takes a template definition and structured data file (json/yaml) and produces the output,
i'd like to use cue without needing an additional output step.
more importantly, i'd like colleagues to be able to use gomplate+cue in shell scripts without needing a go compiler.

Describe the solution you'd like
CUE as a native source format to gomplate, to avoid a preliminary conversion to json/yaml.

Describe alternatives you've considered

  • a pre-compilation step to convert from cue to json/yaml and then be imported

Additional context
cue imports and cue tool improvements may help with this, since this could be written as a cue tool, but really this gomplate method is much simpler for people to use.

@kghenderson kghenderson added FeatureRequest New feature or request Triage Requires triage/attention labels Jan 12, 2023
@kghenderson
Copy link
Author

fyi, created a mirror ticket on the gomplate site:
hairyhenderson/gomplate#1601

@mvdan
Copy link
Member

mvdan commented Jan 23, 2023

Just so I understand the whole picture - is there a particular reason why you opened issues both in gomplate and CUE? Are there any changes that would need to happen in CUE itself?

@myitcv myitcv added zGarden and removed zGarden labels Jun 13, 2023
@mvdan
Copy link
Member

mvdan commented May 16, 2024

Looks like this happened upstream in hairyhenderson/gomplate#1781. Closing for now.

@mvdan mvdan closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest New feature or request Triage Requires triage/attention
Projects
None yet
Development

No branches or pull requests

3 participants