diff --git a/kernelci/cli/event.py b/kernelci/cli/event.py index c632cc4134..fc805fff4d 100644 --- a/kernelci/cli/event.py +++ b/kernelci/cli/event.py @@ -24,16 +24,16 @@ def kci_event(): """Interact with Pub/Sub and message queue events""" - @kci_event.command(secrets=True) @click.argument('channel') +@click.option('--promisc', help="Subscribe to all users", is_flag=True) @Args.config @Args.api @catch_error -def subscribe(config, api, channel, secrets): +def subscribe(config, api, channel, secrets, promisc): """Subscribe to a Pub/Sub channel""" api = get_api(config, api, secrets) - sub_id = api.subscribe(channel) + sub_id = api.subscribe(channel, promisc) click.echo(sub_id)