vela def vet
Validate X-Definition.
Synopsis
Validate definition file by checking whether it has the valid CUE or Go format with fields set correctly. Supports both CUE files and Go definition files using the defkit package.
- For CUE files, this command checks the CUE syntax and validates the definition structure.
- For Go files, it verifies the Go syntax and ensures the generated CUE is valid.
vela def vet DEFINITION.cue|DEFINITION.go [flags]
Examples
# Command below will validate the my-def.cue file.
> vela def vet my-def.cue
# Validate a Go definition file.
> vela def vet my-def.go
# Validate every CUE and Go definition file provided
> vela def vet my-def1.cue my-def2.go my-def3.cue
# Validate every CUE and Go definition file in the specified directories
> vela def vet ./test1/ ./test2/
Options
-h, --help help for vet
Options inherited from parent commands
-V, --verbosity Level number for the log level verbosity
-y, --yes Assume yes for all user prompts
SEE ALSO
- vela def - Manage definitions.