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

Interface UI

cmd/prompt/prompt.go:32–34  ·  cmd/prompt/prompt.go::UI

go:generate mockgen -destination=./prompt_mock.go -self_package "github.com/docker/compose/v5/pkg/prompt" -package=prompt . UI UI - prompt user input

Source from the content-addressed store, hash-verified

30
31// UI - prompt user input
32type UI interface {
33 Confirm(message string, defaultValue bool) (bool, error)
34}
35
36func NewPrompt(stdin *streams.In, stdout *streams.Out) UI {
37 if stdin.IsTerminal() {

Callers 2

confirmRemoteIncludesFunction · 0.65

Implementers 4

MockUIcmd/prompt/prompt_mock.go
MockUIMockRecordercmd/prompt/prompt_mock.go
Usercmd/prompt/prompt.go
Pipecmd/prompt/prompt.go

Calls

no outgoing calls

Tested by

no test coverage detected