MCPcopy Create free account
hub / github.com/devcontainers/cli / parseMount

Function parseMount

src/spec-configuration/containerFeaturesConfiguration.ts:115–119  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

113};
114
115export function parseMount(str: string): Mount {
116 return str.split(',')
117 .map(s => s.split('='))
118 .reduce((acc, [key, value]) => ({ ...acc, [(normalizedMountKeys[key] || key)]: value }), {}) as Mount;
119}
120
121export type SourceInformation = GithubSourceInformation | DirectTarballSourceInformation | FilePathSourceInformation | OCISourceInformation;
122

Callers 2

mergeMountsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected