(verify: string[])
| 66 | } |
| 67 | |
| 68 | function assertVerify(verify: string[]) { |
| 69 | if (!Array.isArray(verify) || verify.length === 0 || verify.some((cmd) => !cmd.trim())) { |
| 70 | throw new CloudboxRunError("invalid_verify", "verify must contain at least one command"); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | function tail(s: string, max = 4000) { |
| 75 | return s.length > max ? s.slice(-max) : s; |