MCPcopy Create free account
hub / github.com/effect-app/libs / buildPrintArgs

Function buildPrintArgs

packages/infra/src/CUPS.ts:76–90  ·  view source on GitHub ↗
(filePath: string, printer: PrinterConfig | undefined, options: string[])

Source from the content-addressed store, hash-verified

74}
75
76function* 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
92export const prepareTempDir = Effect.sync(() => {
93 // TODO

Callers 1

printFile_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…