tilt icon indicating copy to clipboard operation
tilt copied to clipboard

Support Tiltfile args with `tilt enable`

Open dhorkin opened this issue 1 year ago • 1 comments

Describe the Feature You Want

Similar to how you can define a group of services to use with tilt up and tilt down, I'd like to be able to do the same with tilt enable

Current Behavior

After configuring as per the link above, tilt enable group_name gives an error about "no such resource"

Why Do You Want This?

Suppose I have two groups, server and subset.

I can use tilt up to run everything, tilt up server to only run backend stuff, and tilt up subset to run a subset of frontend related services.

However, if I start via tilt up server and then change my mind, I have to either run tilt enable frontend_a frontend_b frontend_c or run tilt down followed by tilt up. Similarly, if I use tilt up server followed by tilt down subset, I end up in the same place.

I imagine this might be possible in a tedious fashion via local_resource duplicates of the same groups, but that seems undesirable.

Additional context N/A

dhorkin avatar Mar 19 '24 03:03 dhorkin

:thinking: hmmm...i think this might be the same feature request as https://github.com/tilt-dev/tilt/issues/6137 ? i.e., provide a more ergonomic way to add and remove arguments at runtime?

nicks avatar Mar 26 '24 00:03 nicks