MCPcopy Index your code
hub / github.com/devcontainers/cli / getLabelsAsRecord

Function getLabelsAsRecord

src/spec-node/singleContainer.ts:485–492  ·  view source on GitHub ↗
(labels: string[])

Source from the content-addressed store, hash-verified

483}
484
485function 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
494export function bailOut(output: Log, message: string): never {
495 output.write(toErrorText(message));

Callers 1

spawnDevContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected