Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added StringSliceVarMult #326

Closed
wants to merge 1 commit into from
Closed

Conversation

cdoern
Copy link

@cdoern cdoern commented Sep 12, 2021

the purpose of this new flag declaration is so the user can put the data of the flag
in multiple locations without having to manually assign it in their application.
This is useful with entities that inherit many properties from a parent.

Example usage:

testFlagName := "test"
var combined []*[]string
combined = append(combined,  &createOpts.Parent)
combined = append(combined,  &createOpts.Child)
flagSet.StringSliceVarMult(combined, testFlagName, []string{}, "fill multiple entities at once")

@CLAassistant
Copy link

CLAassistant commented Sep 12, 2021

CLA assistant check
All committers have signed the CLA.

the purpose of this new flag declaration is so the user can put the data of the flag
in multiple locations without having to manually assign it in their application.
This is useful with entities that inherit many properties from a parent.

Signed-off-by: cdoern <cdoern@redhat.com>
@cdoern
Copy link
Author

cdoern commented Jun 2, 2022

closing due to staleness

@cdoern cdoern closed this Jun 2, 2022
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