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

Function getHostMountFolder

src/spec-node/utils.ts:400–402  ·  view source on GitHub ↗
(cliHost: CLIHost, folderPath: string, mountWorkspaceGitRoot: boolean, output: Log)

Source from the content-addressed store, hash-verified

398}
399
400export async function getHostMountFolder(cliHost: CLIHost, folderPath: string, mountWorkspaceGitRoot: boolean, output: Log): Promise<string> {
401 return mountWorkspaceGitRoot && await findGitRootFolder(cliHost, folderPath, output) || folderPath;
402}
403
404export interface WorkspaceConfiguration {
405 workspaceMount: string | undefined;

Callers 1

Calls 1

findGitRootFolderFunction · 0.90

Tested by

no test coverage detected