MCPcopy Create free account
hub / github.com/coder/agentapi / Write

Method Write

lib/termexec/termexec.go:138–140  ·  view source on GitHub ↗

Write sends input to the process via the pseudo terminal.

(data []byte)

Source from the content-addressed store, hash-verified

136
137// Write sends input to the process via the pseudo terminal.
138func (p *Process) Write(data []byte) (int, error) {
139 return p.xp.TerminalInPipe().Write(data)
140}
141
142// Close closes the process using a SIGINT signal or forcefully killing it if the process
143// does not exit after the timeout. It then closes the pseudo terminal.

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected