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.
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.