(command: string, options: { stdin?: string } = {})
| 78 | } |
| 79 | |
| 80 | export 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 | |
| 91 | export 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'; |
no test coverage detected