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

Function logCommand

out/cli.cjs:66816–66822  ·  view source on GitHub ↗
(escapedCommand, { verbose })

Source from the content-addressed store, hash-verified

66814var import_node_util = require("node:util");
66815var import_node_process6 = __toESM(require("node:process"), 1);
66816var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
66817var padField = (field, padding) => String(field).padStart(padding, "0");
66818var getTimestamp = () => {
66819 const date = /* @__PURE__ */ new Date();
66820 return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
66821};
66822var logCommand = (escapedCommand, { verbose }) => {
66823 if (!verbose) {
66824 return;
66825 }

Callers 2

execaFunction · 0.85
execaSyncFunction · 0.85

Calls 2

getTimestampFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…