MCPcopy Create free account
hub / github.com/esmBot/esmBot / getVers

Function getVers

src/utils/misc.ts:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21let broadcast = false;
22
23export async function getVers() {
24 process.env.ESMBOT_VER = packageJson.version;
25 const execFile = util.promisify(baseExecFile);
26
27 process.env.GIT_REV = await execFile("git", ["rev-parse", "HEAD"]).then(
28 (output) => output.stdout.substring(0, 7),
29 () => "unknown commit",
30 );
31}
32
33export function initLog() {
34 console.log(`

Callers 2

app.tsFile · 0.85
node.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected