Skip to content

Add new parameter -extra-values to generate functions returning slices of strings of the enumerations#5

Merged
stevendpclark merged 1 commit intomasterfrom
stevendpclark_add_extra_values
Dec 11, 2025
Merged

Add new parameter -extra-values to generate functions returning slices of strings of the enumerations#5
stevendpclark merged 1 commit intomasterfrom
stevendpclark_add_extra_values

Conversation

@stevendpclark
Copy link
Owner

Add a new boolean parameter to enumer called -extra-values that will add two new functions to generate. These are mainly to help with Vault use-cases of using these values as arguments for parameters.

The two additional methods will be generated, <Type>ValuesAsStr() which returns a slice of strings that represent all the enumerations and <Type>sStrValuesAsAny which returns the same slice as <Type>ValuesAsStr() but is returned as a slice of any values.

@stevendpclark stevendpclark self-assigned this Dec 10, 2025
Copy link
Collaborator

@victorr victorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@stevendpclark stevendpclark merged commit 7dd0a74 into master Dec 11, 2025
7 checks passed
@stevendpclark stevendpclark deleted the stevendpclark_add_extra_values branch December 11, 2025 17:55
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.

2 participants