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

Function getLabels

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

Source from the content-addressed store, hash-verified

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

Callers 1

spawnDevContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected