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

Function getInputSync

out/cli.cjs:66627–66633  ·  view source on GitHub ↗
({ input, inputFile })

Source from the content-addressed store, hash-verified

66625var import_node_fs2 = require("node:fs");
66626var import_get_stream = __toESM(require_get_stream(), 1);
66627var import_merge_stream = __toESM(require_merge_stream(), 1);
66628var validateInputOptions = (input) => {
66629 if (input !== void 0) {
66630 throw new TypeError("The `input` and `inputFile` options cannot be both set.");
66631 }
66632};
66633var getInputSync = ({ input, inputFile }) => {
66634 if (typeof inputFile !== "string") {
66635 return input;
66636 }

Callers 1

handleInputSyncFunction · 0.85

Calls 1

validateInputOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…