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

Function runStep

scripts/pre-push-check.js:140–151  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

138}
139
140function runStep(step) {
141 console.log(`\n🔎 执行 ${step.name}...`);
142 const result = spawnSync(npmCmd, step.args, {
143 stdio: 'inherit',
144 env: process.env
145 });
146
147 if (result.status !== 0) {
148 console.error(`\n❌ ${step.name}未通过,已阻止 push。`);
149 process.exit(result.status || 1);
150 }
151}
152
153function main() {
154 const mode = resolveMode();

Callers 1

mainFunction · 0.85

Calls 2

logMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected