MCPcopy Create free account
hub / github.com/devcontainers/cli / createDocuments

Function createDocuments

src/spec-configuration/editableFiles.ts:150–159  ·  view source on GitHub ↗
(fileHost: FileHost, shellServer?: ShellServer)

Source from the content-addressed store, hash-verified

148}
149
150export function createDocuments(fileHost: FileHost, shellServer?: ShellServer): Documents {
151 const documents: Record<string, Documents> = {
152 file: fileDocuments,
153 [CLIHostDocuments.scheme]: new CLIHostDocuments(fileHost),
154 };
155 if (shellServer) {
156 documents[RemoteDocuments.scheme] = new RemoteDocuments(shellServer);
157 }
158 return new AllDocuments(documents);
159}
160
161export interface ShellServer {
162 exec(cmd: string, options?: { logOutput?: boolean; stdin?: Buffer }): Promise<{ stdout: string; stderr: string }>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected