MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / handleInputSync

Function handleInputSync

out/cli.cjs:66634–66640  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

66632};
66633var getInputSync = ({ input, inputFile }) => {
66634 if (typeof inputFile !== "string") {
66635 return input;
66636 }
66637 validateInputOptions(input);
66638 return (0, import_node_fs2.readFileSync)(inputFile);
66639};
66640var handleInputSync = (options) => {
66641 const input = getInputSync(options);
66642 if (isStream(input)) {
66643 throw new TypeError("The `input` option cannot be a stream in sync mode");

Callers 1

execaSyncFunction · 0.85

Calls 2

getInputSyncFunction · 0.85
isStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…