(flag)
| 34 | process.on("SIGTERM", stop); |
| 35 | |
| 36 | function readArg(flag) { |
| 37 | const index = args.indexOf(flag); |
| 38 | if (index === -1) return null; |
| 39 | const value = args[index + 1]; |
| 40 | if (!value || value.startsWith("--")) throw new Error(`${flag} needs a value`); |
| 41 | return value; |
| 42 | } |
| 43 | |
| 44 | async function readStateRunId() { |
| 45 | const statePath = new URL(`file://${process.cwd()}/.cloudbox-live.json`); |
no outgoing calls
no test coverage detected