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

Function printFile_

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

Source from the content-addressed store, hash-verified

70}
71
72function printFile_(filePath: string, printer: PrinterConfig | undefined, options: string[]) {
73 return exec(["lp", ...buildPrintArgs(filePath, printer, options)].join(" "))
74}
75
76function* buildPrintArgs(filePath: string, printer: PrinterConfig | undefined, options: string[]) {
77 if (printer) {

Callers 1

printFileFunction · 0.85

Calls 3

buildPrintArgsFunction · 0.85
joinMethod · 0.80
execFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…