Is your feature request related to a problem? Please describe.
As the primary contributor to a project, I'd like a means to define default values for custom properties to save needing to type them in every time.
Describe the solution you'd like
Make it so that if you have a config file like:
# .changie.yaml
envPrefix: CHANGIE_
custom:
- key: Author
type: string
Then having an env var called CHANGIE_CUSTOM_AUTHOR defined would be applied the same as if you did --custom Author="George" when doing changie new. This'll enable a way to have localized defaults for me without affecting other user's workflow.
Describe alternatives you've considered
Just doing something like:
custom:
- key: Author
type: string
default: George
would be another option, but is a lot less flexible than the ENV var approach. Also could lead to confusion when other people go to do changie new as well.
Additional context
Discussed a bit in #800.
Is your feature request related to a problem? Please describe.
As the primary contributor to a project, I'd like a means to define default values for custom properties to save needing to type them in every time.
Describe the solution you'd like
Make it so that if you have a config file like:
Then having an env var called
CHANGIE_CUSTOM_AUTHORdefined would be applied the same as if you did--custom Author="George"when doingchangie new. This'll enable a way to have localized defaults for me without affecting other user's workflow.Describe alternatives you've considered
Just doing something like:
would be another option, but is a lot less flexible than the ENV var approach. Also could lead to confusion when other people go to do
changie newas well.Additional context
Discussed a bit in #800.