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

cmd/cue: add "generate" command #26

Closed
cueckoo opened this issue Jul 3, 2021 · 1 comment
Closed

cmd/cue: add "generate" command #26

cueckoo opened this issue Jul 3, 2021 · 1 comment
Labels
cla: yes FeatureRequest New feature or request MaybeLater May be reopened and considered for later versions of the language. roadmap/cli Specific tag for roadmap issue #337

Comments

@cueckoo
Copy link
Collaborator

cueckoo commented Jul 3, 2021

Originally opened by @mpvl in cuelang/cue#26

Analogous to the Go's go generate.

CUE's is designed with code generation in mind and it is to be expected that many CUE files will be generated. A cue:generate directive would allow annotating the methods used to generate the files in a way familiar to Go programmers.

@cueckoo cueckoo added cla: yes FeatureRequest New feature or request MaybeLater May be reopened and considered for later versions of the language. roadmap/cli Specific tag for roadmap issue #337 labels Jul 3, 2021
@cueckoo cueckoo closed this as completed Jul 3, 2021
@cueckoo
Copy link
Collaborator Author

cueckoo commented Jul 3, 2021

Original reply by @mpvl in cuelang/cue#26 (comment)

The obvious thing to do is to add a command: generate: entry in the tool layer. Until this is proven to be awkward, we archive this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes FeatureRequest New feature or request MaybeLater May be reopened and considered for later versions of the language. roadmap/cli Specific tag for roadmap issue #337
Projects
None yet
Development

No branches or pull requests

1 participant