rye icon indicating copy to clipboard operation
rye copied to clipboard

Allow to skip a subset of prompts

Open eifinger opened this issue 1 year ago • 1 comments

We are using https://github.com/eifinger/setup-rye to automatically set up rye in our CICD pipelines. In this action I am using RYE_INSTALL_OPTION to skip all prompts. Since version 0.21.0 this means that .profile also gets manipulated. Since rye is not installed into the users home directory but rather to the GitHub Actions toolscache it could mean that the path that gets added to .profile might be cleaned up.

On a non-epheremal host like a self hosted runner on bare metal this messes up some things.

It would be great if I can skip/accept a subset of prompts. Either with dedicated environment variables or by setting a set of values into RYE_INSTALL_OPTION e.g. --yes --add-to-path

eifinger avatar Feb 08 '24 13:02 eifinger

Yes, I think this needs a bunch of flags. I think it would reasonable to model this out what --yes should apply to and what flags should be opt-in vs opt-out etc.

mitsuhiko avatar Feb 08 '24 16:02 mitsuhiko