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

Function Start

pty/start.go:58–60  ·  view source on GitHub ↗

Start the command in a TTY. The calling code must not use cmd after passing it to the PTY, and instead rely on the returned Process to manage the command/process.

(cmd *Cmd, opt ...StartOption)

Source from the content-addressed store, hash-verified

56// Start the command in a TTY. The calling code must not use cmd after passing it to the PTY, and
57// instead rely on the returned Process to manage the command/process.
58func Start(cmd *Cmd, opt ...StartOption) (PTYCmd, Process, error) {
59 return startPty(cmd, opt...)
60}

Callers 9

TestSSH_ForwardGPGFunction · 0.92
Test_Start_copyFunction · 0.92
Test_Start_truncationFunction · 0.92
StartFunction · 0.92
doAttachMethod · 0.92
newBufferedFunction · 0.92
startPTYSessionMethod · 0.92
TestIntegrationDockerFunction · 0.92

Calls 1

startPtyFunction · 0.70

Tested by 5

TestSSH_ForwardGPGFunction · 0.74
Test_Start_copyFunction · 0.74
Test_Start_truncationFunction · 0.74
TestIntegrationDockerFunction · 0.74