MCPcopy Create free account
hub / github.com/cloudflare/computer / runRepoList

Function runRepoList

packages/computer/src/artifacts/cli.ts:384–395  ·  view source on GitHub ↗
(client: ArtifactClient, args: string[])

Source from the content-addressed store, hash-verified

382}
383
384async function runRepoList(client: ArtifactClient, args: string[]): Promise<ArtifactsCLIResult> {
385 const parsed = parseFlags(args, {});
386 if ("error" in parsed) return argvError("repo list", parsed.error);
387 if (parsed.positional.length > 0) {
388 return argvError("repo list", `unexpected argument '${parsed.positional[0]}'`);
389 }
390 try {
391 return ok(json(await client.list()));
392 } catch (cause) {
393 return mapError("repo list", cause);
394 }
395}
396
397async function runRepoDelete(client: ArtifactClient, args: string[]): Promise<ArtifactsCLIResult> {
398 const parsed = parseFlags(args, {});

Callers 1

runRepoFunction · 0.85

Calls 6

argvErrorFunction · 0.85
okFunction · 0.85
jsonFunction · 0.85
mapErrorFunction · 0.85
parseFlagsFunction · 0.70
listMethod · 0.65

Tested by

no test coverage detected