-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Proposal] Define bundle as CUE module instead of individual files #324
Comments
Did you try using CUE import directly? This example works and would probably solve your issue. You can even push it further by using list comprehension to fill the bundle with all instances available on the import. I kept this example simple to demonstrate the feasibility:
timoni bundle build -f main.cue |
Note that the command has to run inside your cue module. You can add external files if you want, but your import has to be in the current working dir. This is due to the way timoni builds its workspace I think. Might be something we could solve using a |
@b4nst 's method is a better way to go. A caveat now is that my @stefanprodan do you want to repurpose this issue to implement the missing piece of @b4nst 's idea about |
Currently, to avoid writing a lengthy bundle file, I'd have to split it into multiple CUE files, and apply them with
timoni bundle apply -f <file1> -f <file2>
. The command keeps getting longer the more instances I add to it. Most of the time, I have those bundle files being in the same directory, each specifying values for each individual instance. It'd be nice fortimoni apply
to support directories alongside individual files.Proposal
-d
flag, pointing to the local directory with CUE filespackage bundle
bundle
. This way, CUE's module functionality can be utilized to avoid dealing with file listing, manual value merging logic, .etcThe text was updated successfully, but these errors were encountered: