tilt icon indicating copy to clipboard operation
tilt copied to clipboard

cmd_button should allow to set env variables

Open fabriziopandini opened this issue 3 years ago • 2 comments
trafficstars

Describe the Feature You Want

I would like to pass env variables to cmd_button, as I can do with local_resource

Current Behavior

cmd_button doesn't have an env argument

Why Do You Want This?

To pass env variables to the command defined in cmd_button without messing up os env variables

fabriziopandini avatar Aug 01 '22 19:08 fabriziopandini

thanks for the request! shouldn't be too hard to add. the api exists on Cmd, just needs to get passed through the extension code that creates the Cmd: https://github.com/tilt-dev/tilt-extensions/blob/master/uibutton/Tiltfile#L107 https://api.tilt.dev/core/cmd-v1alpha1.html

nicks avatar Aug 02 '22 00:08 nicks

I would also like to very much see this feature.

g3kk0 avatar Aug 12 '22 10:08 g3kk0

I think this can be closed

tylermichael avatar Oct 14 '22 03:10 tylermichael

Thanks team! Looking forward to use this!

fabriziopandini avatar Oct 14 '22 14:10 fabriziopandini