MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / AskProvider

Interface AskProvider

pkg/question/ask.go:14–18  ·  view source on GitHub ↗

Both the ClientFactory and the main Factory need to reference survey to ask questions, but we need a single place to hold the reference to survey so we can switch it off for automation mode. This wrapper fills that gap.

Source from the content-addressed store, hash-verified

12// automation mode. This wrapper fills that gap.
13
14type AskProvider interface {
15 IsInteractive() bool
16 DisableInteractive()
17 Ask(p survey.Prompt, response interface{}, opts ...survey.AskOpt) error
18}
19
20type askWrapper struct {
21 asker Asker

Callers 6

IsPromptEnabledMethod · 0.65
GetSpacedClientMethod · 0.65
IsPromptEnabledMethod · 0.65
mainFunction · 0.95
NewCmdRootFunction · 0.65

Implementers 1

askWrapperpkg/question/ask.go

Calls

no outgoing calls

Tested by

no test coverage detected