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

Function getCLIHost

src/spec-common/cliHost.ts:57–61  ·  view source on GitHub ↗
(localCwd: string, loadNativeModule: <T>(moduleName: string) => Promise<T | undefined>, allowInheritTTY: boolean)

Source from the content-addressed store, hash-verified

55}
56
57export async function getCLIHost(localCwd: string, loadNativeModule: <T>(moduleName: string) => Promise<T | undefined>, allowInheritTTY: boolean): Promise<CLIHost> {
58 const exec = plainExec(localCwd);
59 const ptyExec = await plainPtyExec(localCwd, loadNativeModule, allowInheritTTY);
60 return createLocalCLIHostFromExecFunctions(localCwd, exec, ptyExec, connectLocal);
61}
62
63function createLocalCLIHostFromExecFunctions(localCwd: string, exec: ExecFunction, ptyExec: PtyExecFunction, connect: ConnectFunction): CLIHost {
64 return {

Callers 13

featuresUpgradeFunction · 0.90
provisionFunction · 0.90
doRunUserCommandsFunction · 0.90
readConfigurationFunction · 0.90
outdatedFunction · 0.90
featuresTestFunction · 0.90
featuresPublishFunction · 0.90
featuresPackageFunction · 0.90
templatesPublishFunction · 0.90
createCLIParamsFunction · 0.85

Calls 3

plainExecFunction · 0.90
plainPtyExecFunction · 0.90

Tested by

no test coverage detected