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

Introduce timoni bundle vet command #234

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Introduce timoni bundle vet command #234

merged 2 commits into from
Nov 1, 2023

Conversation

stefanprodan
Copy link
Owner

@stefanprodan stefanprodan commented Oct 29, 2023

The timoni bundle vet command validates that a bundle and its runtime definition conforms with Timoni's schema.

To verify that one or more CUE files contain a valid Bundle definition:

timoni bundle vet -f bundle.cue -f extras.cue -r runtime.cue

If the validation passes, Timoni will list all the instances found in the computed bundle.

When --print-value is specified, Timoni will write the Bundle computed value to stdout:

timoni bundle vet -f bundle.cue --runtime-from-env --print-value

Printing the computed value is particular useful when debugging runtime attributes.

@stefanprodan stefanprodan added area/ux In pursuit of a delightful user experience area/bundles Timoni's Bundle related issues and pull requests labels Oct 29, 2023
@stefanprodan stefanprodan marked this pull request as ready for review November 1, 2023 22:59
@stefanprodan stefanprodan merged commit 66dc2b6 into main Nov 1, 2023
4 checks passed
@stefanprodan stefanprodan deleted the bundle-vet branch November 1, 2023 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bundles Timoni's Bundle related issues and pull requests area/ux In pursuit of a delightful user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant