(labels: string[])
| 477 | } |
| 478 | |
| 479 | function getLabels(labels: string[]): string[] { |
| 480 | let result: string[] = []; |
| 481 | labels.forEach(each => result.push('-l', each)); |
| 482 | return result; |
| 483 | } |
| 484 | |
| 485 | function getLabelsAsRecord(labels: string[]): Record<string, string> { |
| 486 | let result: Record<string, string> = {}; |