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

Function shellPtyExec

src/test/testUtils.ts:80–89  ·  view source on GitHub ↗
(command: string, options: { stdin?: string } = {})

Source from the content-addressed store, hash-verified

78}
79
80export async function shellPtyExec(command: string, options: { stdin?: string } = {}): Promise<ExecPtyResult> {
81 const ptyExec = await plainPtyExec(undefined, loadNativeModule, true);
82 return runCommand({
83 ptyExec,
84 cmd: '/bin/sh',
85 args: ['-c', command],
86 stdin: options.stdin,
87 output: nullLog,
88 }).then(res => ({ code: 0, ...res }), error => error);
89}
90
91export async function devContainerUp(cli: string, workspaceFolder: string, options?: { cwd?: string; useBuildKit?: boolean; userDataFolder?: string; logLevel?: string; extraArgs?: string; prefix?: string; env?: NodeJS.ProcessEnv }): Promise<UpResult> {
92 const buildkitOption = (options?.useBuildKit ?? false) ? '' : ' --buildkit=never';

Callers 1

describeTests1Function · 0.90

Calls 2

plainPtyExecFunction · 0.90
runCommandFunction · 0.90

Tested by

no test coverage detected