(code: string, message: string, json: boolean)
| 300 | } |
| 301 | |
| 302 | function printSelectionFailure(code: string, message: string, json: boolean): void { |
| 303 | if (json) { |
| 304 | console.log(JSON.stringify({ ok: false, error: { code, message } }, null, 2)); |
| 305 | } else { |
| 306 | clack.log.error(message); |
| 307 | } |
| 308 | process.exitCode = 1; |
| 309 | } |
| 310 | |
| 311 | function previewServerPayload(server: { |
| 312 | port: number; |
no test coverage detected