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

Function handleOutput

out/cli.cjs:66861–66869  ·  view source on GitHub ↗
(options, value, error)

Source from the content-addressed store, hash-verified

66859 };
66860 options.env = getEnv(options);
66861 options.stdio = normalizeStdio(options);
66862 if (import_node_process7.default.platform === "win32" && import_node_path2.default.basename(file, ".exe") === "cmd") {
66863 args.unshift("/q");
66864 }
66865 return { file, args, options, parsed };
66866};
66867var handleOutput = (options, value, error) => {
66868 if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
66869 return error === void 0 ? void 0 : "";
66870 }
66871 if (options.stripFinalNewline) {
66872 return stripFinalNewline(value);

Callers 2

handlePromiseFunction · 0.85
execaSyncFunction · 0.85

Calls 1

stripFinalNewlineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…