( command: DaemonCommandName, input: CommandInput, )
| 45 | } |
| 46 | |
| 47 | export function prepareDaemonCommandRequest( |
| 48 | command: DaemonCommandName, |
| 49 | input: CommandInput, |
| 50 | ): DaemonCommandRequest { |
| 51 | const writer = daemonWriters[command]; |
| 52 | if (!writer) { |
| 53 | throw new Error(`Missing daemon writer for command: ${command}`); |
| 54 | } |
| 55 | const metadata = findCommandMetadata(command); |
| 56 | return prepareRequestWithMetadataFlags(writer, metadata, input); |
| 57 | } |
| 58 | |
| 59 | function prepareRequestWithMetadataFlags( |
| 60 | writer: DaemonWriter, |
no test coverage detected