MCPcopy
hub / github.com/docker/compose / NewPrompt

Function NewPrompt

cmd/prompt/prompt.go:36–41  ·  view source on GitHub ↗
(stdin *streams.In, stdout *streams.Out)

Source from the content-addressed store, hash-verified

34}
35
36func NewPrompt(stdin *streams.In, stdout *streams.Out) UI {
37 if stdin.IsTerminal() {
38 return User{stdin: streamsFileReader{stdin}, stdout: streamsFileWriter{stdout}}
39 }
40 return Pipe{stdin: stdin, stdout: stdout}
41}
42
43// User - in a terminal
44type User struct {

Callers 3

pluginMainFunction · 0.92
confirmRemoteIncludesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected