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

Function argValue

apps/cloud/scripts/migrate-specs-to-blobs.ts:64–67  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

62// --- args ---
63
64const argValue = (name: string): string | undefined => {
65 const index = process.argv.indexOf(name);
66 return index >= 0 ? process.argv[index + 1] : undefined;
67};
68
69const dryRun = process.argv.includes("--dry-run");
70const target = argValue("--target") ?? "r2";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected