(localCwd: string, loadNativeModule: <T>(moduleName: string) => Promise<T | undefined>, allowInheritTTY: boolean)
| 55 | } |
| 56 | |
| 57 | export 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 | |
| 63 | function createLocalCLIHostFromExecFunctions(localCwd: string, exec: ExecFunction, ptyExec: PtyExecFunction, connect: ConnectFunction): CLIHost { |
| 64 | return { |
no test coverage detected