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

Function substitute0

src/spec-node/configContainer.ts:94–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93 const workspaceConfig = await getWorkspaceConfiguration(cliHost, workspace, updated, mountWorkspaceGitRoot, mountGitWorktreeCommonDir, output, consistency);
94 const substitute0: SubstituteConfig = value => substitute({
95 platform: cliHost.platform,
96 localWorkspaceFolder: workspace?.rootFolderPath,
97 containerWorkspaceFolder: workspaceConfig.workspaceFolder,
98 configFile,
99 env: cliHost.env,
100 }, value);
101 const config: DevContainerConfig = substitute0(updated);
102 if (typeof config.workspaceFolder === 'string') {
103 workspaceConfig.workspaceFolder = config.workspaceFolder;

Callers 2

addSubstitutionFunction · 0.70

Calls 1

substituteFunction · 0.90

Tested by

no test coverage detected