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

Function createConvertCommand

src/commands/convert.ts:6–26  ·  view source on GitHub ↗
(runJob: JobRunner)

Source from the content-addressed store, hash-verified

4import type { JobRunner } from './types.js';
5
6export function createConvertCommand(runJob: JobRunner): CommandModule<object, object> {
7 return createFileJobCommand(
8 {
9 command: 'convert <files..>',
10 describe: 'Convert files to an output format',
11 fileDescription: 'Path(s) to file(s) to convert',
12 operation: 'convert',
13 format: {
14 alias: 'f',
15 describe: 'Set the output format',
16 required: true
17 },
18 examples: [
19 'cloudconvert convert -f png input.pdf',
20 'cloudconvert convert --output-dir output/ -f png directory/*',
21 'cloudconvert convert -f png --pages=1-1 --width=600 input.pdf'
22 ]
23 },
24 runJob
25 );
26}

Callers 1

createCliFunction · 0.85

Calls 1

createFileJobCommandFunction · 0.85

Tested by

no test coverage detected