MCPcopy Index your code
hub / github.com/docker/cli / SetIsTerminal

Method SetIsTerminal

cli/streams/in.go:80–82  ·  view source on GitHub ↗

SetIsTerminal overrides whether a terminal is connected. It is used to override this property in unit-tests, and should not be depended on for other purposes.

(isTerminal bool)

Source from the content-addressed store, hash-verified

78// override this property in unit-tests, and should not be depended on for
79// other purposes.
80func (i *In) SetIsTerminal(isTerminal bool) {
81 i.cs.setIsTerminal(isTerminal)
82}

Callers 6

TestStdioAttributesFunction · 0.45
TestNewLoadCommandErrorsFunction · 0.45
TestPrintImageTreeGoldenFunction · 0.45
TestNewSaveCommandErrorsFunction · 0.45

Calls 1

setIsTerminalMethod · 0.80

Tested by 6

TestStdioAttributesFunction · 0.36
TestNewLoadCommandErrorsFunction · 0.36
TestPrintImageTreeGoldenFunction · 0.36
TestNewSaveCommandErrorsFunction · 0.36