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

Function printFile

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

Source from the content-addressed store, hash-verified

66type PrinterConfig = { url?: URL | undefined; id: string }
67
68function printFile(printer: PrinterConfig | undefined, options: string[]) {
69 return (filePath: string) => printFile_(filePath, printer, options)
70}
71
72function printFile_(filePath: string, printer: PrinterConfig | undefined, options: string[]) {
73 return exec(["lp", ...buildPrintArgs(filePath, printer, options)].join(" "))

Callers 2

printBufferFunction · 0.85
CUPSClass · 0.85

Calls 1

printFile_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…