MCPcopy Create free account
hub / github.com/cli/cli / persistentWait

Function persistentWait

evals/src/suites/events/commands.ts:40–44  ·  view source on GitHub ↗
(call: Call)

Source from the content-addressed store, hash-verified

38
39/** Whether a listener keeps listening after its first event, with `--follow` or a `--count` above 1. */
40export 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. */

Callers 2

commands.test.tsFile · 0.85
tickMethod · 0.85

Calls 3

dedicatedWaitFunction · 0.85
getMethod · 0.80
commandFunction · 0.70

Tested by

no test coverage detected