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

Log valueFromEnvironmentNotice messages to stderr #370

Closed watsonian closed 1 year ago

watsonian commented 1 year ago

We had been printing these messages to stdout. This is fine for some operations, but others are more likely to be used in a scripted environment where just the value (e.g., token=$(doppler configure get token --plain)) is expected. By not printing to stderr, the message would end up in the value of the assignment. This just switches all uses of valueFromEnvironmentNotice to use utils.Log rather than utils.Print.

watsonian commented 1 year ago

Okay, should be good to go now!