hookdeck-cli icon indicating copy to clipboard operation
hookdeck-cli copied to clipboard

Add ability to listen to multiple sources at once with the CLI

Open leggetter opened this issue 9 months ago • 3 comments

How

  1. Add the * select to the listen command. Right now you can do hookdeck listen 9001 shopify which starts the CLI without a source select prompt for the source specified. With hookdeck listen 9001 * we could let you select all sources
  2. Support comma delimited source selector. Same as #1 but hookdeck listen 9001 shopify,stripe to start on a set of sources
  3. On hookdeck listen 9001 the source select prompt should have a “all” option which has the same behavior as *

image

  1. When the CLI starts, the terminal printout should support multiple sources & URL. The terminal should probably only print the first ~10. The connection name also needs to display the full name with the source prefix like shopify -> out-of-stock

image

The backend should already support this as only a set of connection IDs are expected

Caveat & questions

They * could cause problem if there are thousands of sources, should we put a upper bound of the first 100 as a limitation?

leggetter avatar May 01 '24 10:05 leggetter