(filePath: string, printer: PrinterConfig | undefined, options: string[])
| 74 | } |
| 75 | |
| 76 | function* buildPrintArgs(filePath: string, printer: PrinterConfig | undefined, options: string[]) { |
| 77 | if (printer) { |
| 78 | if (printer.url) { |
| 79 | yield `-h ${printer.url.host}` |
| 80 | if (printer.url.username) { |
| 81 | yield `-U ${printer.url.username}` |
| 82 | } |
| 83 | } |
| 84 | yield `-d "${printer.id}"` |
| 85 | for (const o of options) { |
| 86 | yield `-o ${o}` |
| 87 | } |
| 88 | } |
| 89 | yield `"${filePath}"` |
| 90 | } |
| 91 | |
| 92 | export const prepareTempDir = Effect.sync(() => { |
| 93 | // TODO |
no outgoing calls
no test coverage detected
searching dependent graphs…