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

Export all *Value types #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

frebib
Copy link

@frebib frebib commented Jan 23, 2022

Promote reuse and make it convenient for users to create and add these
Value types hand-crafted pflag.Flag structs when the helper functions
can't be used and the raw pflag.Flag value is desired, so it can be
passed to FlagSet.AddFlag().

Fixes: #334
Signed-off-by: Joe Groocock me@frebib.net

Promote reuse and make it convenient for users to create and add these
Value types hand-crafted pflag.Flag structs when the helper functions
can't be used and the raw pflag.Flag value is desired, so it can be
passed to FlagSet.AddFlag().

Fixes: spf13#334
Signed-off-by: Joe Groocock <me@frebib.net>
@CLAassistant
Copy link

CLAassistant commented Jan 23, 2022

CLA assistant check
All committers have signed the CLA.

@talbright
Copy link

This is needed, but why not export all the other flag types like duration, bool, etc? To make these even more useful we should export the new functions like newBoolSliceValue

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.

Expose Value implementations to use with FlagSet.AddFlag
3 participants