Skip to content

Introduce global and cascading configuration options#97

Merged
sethvargo merged 1 commit intomainfrom
sethvargo/globals
Dec 20, 2023
Merged

Introduce global and cascading configuration options#97
sethvargo merged 1 commit intomainfrom
sethvargo/globals

Conversation

@sethvargo
Copy link
Owner

This introduces the concept of global configurations and cascades struct-level configuration options onto all child fields. For example, marking a struct as required will mark all child fields as required. Similarly, setting a custom delimiter on a struct tag propagates that delimiter to all child fields of the struct.

Closes #88

@sethvargo sethvargo force-pushed the sethvargo/globals branch 2 times, most recently from ce874ea to cb1054b Compare December 20, 2023 03:37
This introduces the concept of global configurations and cascades struct-level configuration options onto all child fields. For example, marking a struct as required will mark all child fields as required. Similarly, setting a custom delimiter on a struct tag propagates that delimiter to all child fields of the struct.
@sethvargo sethvargo merged commit 9dce086 into main Dec 20, 2023
@sethvargo sethvargo deleted the sethvargo/globals branch December 20, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set overwrite globally

1 participant