DopplerHQ / cli

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

Add error handling for missing parent dir when using `--configuration` #176

Closed nmanoogian closed 3 years ago

nmanoogian commented 3 years ago

The CLI is designed to create the UserConfigDir if it does not already exist. However, when the user specifies --configuration, it replaces UserConfigFile but not UserConfigDir (which is still used in its original form for storing fallback files). To reduce confusion, this change adds a check to make sure that the parent directory of UserConfigFile exists and raises a specific error otherwise.

Piccirello commented 3 years ago

The commit messages we use in this repo appear directly as changelog entries in the CLI. We should use a commit message that's more use friendly. Something like "Display error when specified configuration dir doesn't exist".