MCPcopy Create free account
hub / github.com/docker/compose / KeyboardError

Struct KeyboardError

cmd/formatter/shortcut.go:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39const DISPLAY_ERROR_TIME = 10
40
41type KeyboardError struct {
42 err error
43 timeStart time.Time
44}
45
46func (ke *KeyboardError) shouldDisplay() bool {
47 return ke.err != nil && int(time.Since(ke.timeStart).Seconds()) < DISPLAY_ERROR_TIME

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected