DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

Support passing list of secrets to --preserve-env flag #401

Closed Piccirello closed 1 year ago

Piccirello commented 1 year ago

This PR changes the --preserve-env flag from a boolean flag to a string flag. It supports the same syntax as before (i.e. --preserve-env is equivalent to --preserve-env=true) while allowing you to specify a comma separated list of secrets to override. For example, DEBUG=1 doppler run --preserve-env="DEBUG" -- printenv DEBUG. To ensure backwards compatibility, I verified that the tests in the first commit passed before pushing up the second commit.

Closes ENG-6327.