({ args })
| 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 |
nothing calls this directly
no test coverage detected