Hi,
I am currently writing an invoke task that will carry out some operation on a group of users. For reasons I won't go into we have multiple ways of specifying users so my task looks something like this:
@task(
iterable=["consent_id", "account_id", "email_address"]
)
def do_thing(ctx, consent_id, account_id, email_address):
# logic to check that the caller has specified either some `consent_id`s, `account_id`s or `email_address`es, but not
# a combination thereof. The caller should specify either `consent_id`s OR `account_id`s OR `email_address`es.
it would be handy if invoke had a way to do this on my behalf. i.e. specify arguments that are mutually exclusive. Perhaps like so:
Hi, I am currently writing an invoke task that will carry out some operation on a group of users. For reasons I won't go into we have multiple ways of specifying users so my task looks something like this:
it would be handy if invoke had a way to do this on my behalf. i.e. specify arguments that are mutually exclusive. Perhaps like so:
hope that makes sense. Consider it a feature request.