MCPcopy Index your code
hub / github.com/coder/coder / PTYCommandContext

Method PTYCommandContext

agent/agentexec/exec.go:100–103  ·  view source on GitHub ↗
(ctx context.Context, cmd string, args ...string)

Source from the content-addressed store, hash-verified

98}
99
100func (e priorityExecer) PTYCommandContext(ctx context.Context, cmd string, args ...string) *pty.Cmd {
101 cmd, args = e.agentExecCmd(cmd, args...)
102 return pty.CommandContext(ctx, cmd, args...)
103}
104
105func (e priorityExecer) agentExecCmd(cmd string, args ...string) (string, []string) {
106 execArgs := []string{"agent-exec"}

Callers

nothing calls this directly

Calls 2

agentExecCmdMethod · 0.95
CommandContextFunction · 0.92

Tested by

no test coverage detected