MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / findTailscale

Function findTailscale

e2e/scripts/cli.ts:107–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 });
106
107const findTailscale = async (): Promise<string | undefined> => {
108 for (const candidate of TAILSCALE_CANDIDATES) {
109 const { ok } = await sh(candidate, ["version"]);
110 if (ok) return candidate;
111 }
112 return undefined;
113};
114
115/** This machine's tailnet IPv4 (100.x.y.z), from interfaces — works even
116 * when the tailscale CLI is a broken shim. */

Callers 3

runFunction · 0.85
shutdownFunction · 0.85
downFunction · 0.85

Calls 1

shFunction · 0.70

Tested by

no test coverage detected