vela def gen-api
Generate Go struct of Parameter from X-Definition.
Synopsis
Generate Go struct of Parameter from definition file.
- Currently, this function is still working in progress and not all formats of parameter in X-definition are supported yet.
vela def gen-api DEFINITION.cue [flags]
Examples
# Command below will generate the Go struct for the my-def.cue file.
> vela def gen-api my-def.cue
Options
-h, --help help for gen-api
--package-name string Specify the package name in generated Go code. (default "main")
--prefix string Specify the prefix of the generated Go struct.
--skip-package-name Skip package name in generated Go code.
Options inherited from parent commands
-y, --yes Assume yes for all user prompts
SEE ALSO
- vela def - Manage Definitions