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

Function run

packages/cli/src/commands/cloud/get.ts:31–45  ·  view source on GitHub ↗
({ args })

Source from the content-addressed store, hash-verified

29 },
30 },
31 async run({ args }) {
32 const client = await createCloudClient();
33 try {
34 const detail = await client.getRender({ render_id: args.id });
35 if (args.json) {
36 console.log(JSON.stringify(withMeta({ render: detail }), null, 2));
37 return;
38 }
39 printHuman(detail);
40 } catch (err) {
41 reportApiError("Could not fetch render", err, {
42 notFound: `No render found with id "${args.id}".`,
43 });
44 }
45 },
46});
47
48// fallow-ignore-next-line complexity

Callers

nothing calls this directly

Calls 5

createCloudClientFunction · 0.85
withMetaFunction · 0.85
printHumanFunction · 0.85
reportApiErrorFunction · 0.85
getRenderMethod · 0.80

Tested by

no test coverage detected