Skip to content

Ability to apply ENV var values to changie new #801

Description

@Blacksmoke16

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions