MCPcopy Index your code
hub / github.com/cloudconvert/cloudconvert-cli / parseJobCommand

Function parseJobCommand

test/cli.test.ts:388–402  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

386});
387
388async function parseJobCommand(args: string[]): Promise<Array<{ argv: CliArguments; taskData: TaskData }>> {
389 const calls: Array<{ argv: CliArguments; taskData: TaskData }> = [];
390
391 await createCli(['--api-key', 'key', ...args], {
392 exitProcess: false,
393 logger: createSilentLogger(),
394 createClient: () => createFakeCloudConvertClient(),
395 runJob: async (argv, taskData) => {
396 calls.push({ argv, taskData });
397 return createFakeJob();
398 }
399 }).parseAsync();
400
401 return calls;
402}

Callers 1

cli.test.tsFile · 0.85

Calls 4

createCliFunction · 0.85
createSilentLoggerFunction · 0.85
createFakeJobFunction · 0.85

Tested by

no test coverage detected