MCPcopy
hub / github.com/di-sukharev/opencommit / translateLevel

Function translateLevel

out/cli.cjs:65611–65621  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

65609 return 1;
65610 }
65611 if (env.FORCE_COLOR === "false") {
65612 return 0;
65613 }
65614 return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
65615 }
65616}
65617function translateLevel(level) {
65618 if (level === 0) {
65619 return false;
65620 }
65621 return {
65622 level,
65623 hasBasic: true,
65624 has256: level >= 2,

Callers 1

createSupportsColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…