( step: unknown, stepNumber: number, prepareDaemonCommandRequest: PrepareDaemonCommandRequest, )
| 50 | } |
| 51 | |
| 52 | function readBatchDaemonStep( |
| 53 | step: unknown, |
| 54 | stepNumber: number, |
| 55 | prepareDaemonCommandRequest: PrepareDaemonCommandRequest, |
| 56 | ): DaemonBatchStep { |
| 57 | const record = readBatchStepRecord(step, stepNumber); |
| 58 | const command = readBatchStepCommand(record, stepNumber); |
| 59 | const input = readBatchStepInputObject(record, stepNumber) as CommandInput; |
| 60 | const runtime = parseBatchStepRuntime(record.runtime, stepNumber); |
| 61 | const prepared = prepareDaemonCommandRequest(command, input, stepNumber); |
| 62 | return { |
| 63 | command: prepared.command, |
| 64 | positionals: prepared.positionals, |
| 65 | flags: buildRequestFlags(prepared.options, prepared.metadataFlags), |
| 66 | runtime: runtime ?? prepared.options.runtime, |
| 67 | }; |
| 68 | } |
| 69 | |
| 70 | function readBatchStepCommand( |
| 71 | record: Record<string, unknown>, |
no test coverage detected