MCPcopy Create free account
hub / github.com/pingdotgg/t3code / flush

Function flush

apps/server/src/sourceControl/gitLabAuthStatus.ts:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 let currentLines: string[] = [];
13
14 const flush = () => {
15 if (currentHost === null) return;
16
17 const account = LOGGED_IN_PATTERN.exec(currentLines.join("\n"))?.[1]?.trim() || null;
18 hosts.push({ host: currentHost, account });
19 currentHost = null;
20 currentLines = [];
21 };
22
23 for (const rawLine of text.split(/\r?\n/)) {
24 const line = rawLine.trim();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected