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

Method Named

pty/ptytest/ptytest.go:442–445  ·  view source on GitHub ↗

Named sets the PTY name in the logs. Defaults to "cmd". Make sure you set this before anything starts writing to the pty, or it may not be named consistently. E.g. p := New(t).Named("myCmd")

(name string)

Source from the content-addressed store, hash-verified

440//
441// p := New(t).Named("myCmd")
442func (p *PTY) Named(name string) *PTY {
443 p.name.Store(name)
444 return p
445}
446
447type PTYCmd struct {
448 outExpecter

Implementers 3

otherPtypty/pty_other.go
ptyWindowspty/pty_windows.go
testPTYpty/ptytest/ptytest_windows.go

Calls 1

StoreMethod · 0.45