MCPcopy
hub / github.com/di-sukharev/opencommit / handleInput

Function handleInput

out/cli.cjs:66648–66658  ·  view source on GitHub ↗
(spawned, options)

Source from the content-addressed store, hash-verified

66646};
66647var getInput = ({ input, inputFile }) => {
66648 if (typeof inputFile !== "string") {
66649 return input;
66650 }
66651 validateInputOptions(input);
66652 return (0, import_node_fs2.createReadStream)(inputFile);
66653};
66654var handleInput = (spawned, options) => {
66655 const input = getInput(options);
66656 if (input === void 0) {
66657 return;
66658 }
66659 if (isStream(input)) {
66660 input.pipe(spawned.stdin);
66661 } else {

Callers 1

execaFunction · 0.85

Calls 4

getInputFunction · 0.85
isStreamFunction · 0.85
pipeMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…