(labels: string[])
| 483 | } |
| 484 | |
| 485 | function getLabelsAsRecord(labels: string[]): Record<string, string> { |
| 486 | let result: Record<string, string> = {}; |
| 487 | labels.forEach(each => { |
| 488 | let pair = each.split('='); |
| 489 | result[pair[0]] = pair[1]; |
| 490 | }); |
| 491 | return result; |
| 492 | } |
| 493 | |
| 494 | export function bailOut(output: Log, message: string): never { |
| 495 | output.write(toErrorText(message)); |