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

Add a helper method declare multiple key flags. #157

Open
dseomn opened this issue Nov 6, 2020 · 0 comments
Open

Add a helper method declare multiple key flags. #157

dseomn opened this issue Nov 6, 2020 · 0 comments

Comments

@dseomn
Copy link

dseomn commented Nov 6, 2020

Would it be possible to get a new function declare_key_flags() that behaves like declare_key_flag() but takes a Collection of flags instead of a single flag? It would make it easier to do something like this:

# foo.py
FEATURE1_KEY_FLAGS = ('foo', 'bar')
FEATURE2_KEY_FLAGS = ('quux', 'baz')

# main.py
flags.declare_key_flags(foo.FEATURE1_KEY_FLAGS)
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

No branches or pull requests

1 participant