(call: Call)
| 38 | |
| 39 | /** Whether a listener keeps listening after its first event, with `--follow` or a `--count` above 1. */ |
| 40 | export function persistentWait(call: Call): boolean { |
| 41 | if (call.kind !== "gh" || !dedicatedWait(call)) return false; |
| 42 | const { options } = command(call.arguments); |
| 43 | return options.get("--follow") === "true" || Number(options.get("--count") ?? 1) > 1; |
| 44 | } |
| 45 | |
| 46 | /** The times a listener reported on stderr that its stream attached, and whether it still is: it reports each |
| 47 | * reconnect before attaching again. Changes made while no stream is attached are never delivered. */ |
no test coverage detected