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

Function shellBufferExec

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

Source from the content-addressed store, hash-verified

60}
61
62export async function shellBufferExec(command: string, options: { stdin?: Buffer } = {}): Promise<BufferExecResult> {
63 const exec = await plainExec(undefined);
64 return runCommandNoPty({
65 exec,
66 cmd: '/bin/sh',
67 args: ['-c', command],
68 stdin: options.stdin,
69 output: nullLog,
70 }).then(res => ({ code: 0, ...res }), error => error);
71}
72
73export interface ExecPtyResult {
74 cmdOutput: string;

Callers 1

describeTests1Function · 0.90

Calls 2

plainExecFunction · 0.90
runCommandNoPtyFunction · 0.90

Tested by

no test coverage detected