MCPcopy Create free account
hub / github.com/cli/cli / Write

Method Write

script/ghmock/terminal.go:90–97  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

88}
89
90func (o *terminalOutput) Write(p []byte) (int, error) {
91 o.mu.Lock()
92 defer o.mu.Unlock()
93 n, err := o.buffer.Write(p)
94 o.lastOutput.Store(time.Now().UnixNano())
95 o.sawOutput.Store(true)
96 return n, err
97}
98
99func (o *terminalOutput) String() string {
100 o.mu.Lock()

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected