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

Function convertMountArgsToVolume

src/spec-node/singleContainer.ts:472–477  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

470
471// Convert --mount args array (e.g., ['--mount', 'type=bind,...']) to -v syntax for wslc.
472function convertMountArgsToVolume(args: string[]): string[] {
473 if (args.length === 2 && args[0] === '--mount') {
474 return convertMountToVolume(args[1]);
475 }
476 return args;
477}
478
479function getLabels(labels: string[]): string[] {
480 let result: string[] = [];

Callers 1

spawnDevContainerFunction · 0.85

Calls 1

convertMountToVolumeFunction · 0.70

Tested by

no test coverage detected