MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / resolveMode

Function resolveMode

scripts/pre-push-check.js:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23function resolveMode() {
24 const argMode = process.argv
25 .find(arg => arg.startsWith('--mode='))
26 ?.split('=')[1];
27 const envMode = process.env.PREPUSH_MODE;
28 const mode = (argMode || envMode || 'full').toLowerCase();
29 return mode === 'fast' ? 'fast' : 'full';
30}
31
32function getDiffRange() {
33 try {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected