MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / run

Function run

packages/cli/src/commands/cloud/list.ts:48–64  ·  view source on GitHub ↗
({ args })

Source from the content-addressed store, hash-verified

46 },
47 // fallow-ignore-next-line complexity
48 async run({ args }) {
49 const limit = parseIntFlag(args.limit, { flag: "--limit", min: 1, max: 100 });
50
51 const client = await createCloudClient();
52
53 try {
54 if (args.all) {
55 const renders = await fetchAll(client, limit);
56 emit(renders, args.json, null, false);
57 } else {
58 const page = await client.listRenders({ limit, token: args.token });
59 emit(page.data ?? [], args.json, page.next_token ?? null, Boolean(page.has_more));
60 }
61 } catch (err) {
62 reportApiError("Could not list cloud renders", err);
63 }
64 },
65});
66
67// fallow-ignore-next-line complexity

Callers

nothing calls this directly

Calls 6

createCloudClientFunction · 0.85
fetchAllFunction · 0.85
emitFunction · 0.85
reportApiErrorFunction · 0.85
listRendersMethod · 0.80
parseIntFlagFunction · 0.50

Tested by

no test coverage detected