MCPcopy Create free account
hub / github.com/cloudconvert/cloudconvert-cli / collectOperationOptions

Function collectOperationOptions

src/operations.ts:29–39  ·  view source on GitHub ↗
(operations: CloudConvertOperation[])

Source from the content-addressed store, hash-verified

27}
28
29export function collectOperationOptions(operations: CloudConvertOperation[]): Map<string, CloudConvertOperationOption> {
30 const parameterOptions = new Map<string, CloudConvertOperationOption>();
31
32 for (const operation of operations) {
33 for (const option of operation.options ?? []) {
34 parameterOptions.set(option.name, option);
35 }
36 }
37
38 return parameterOptions;
39}

Callers 1

fetchParameterOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected