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

Function NewConfirmPromptWithDefault

test/testutil/fakesurvey.go:110–119  ·  view source on GitHub ↗
(prompt string, help string, response any, defaultResponse bool)

Source from the content-addressed store, hash-verified

108}
109
110func NewConfirmPromptWithDefault(prompt string, help string, response any, defaultResponse bool) *PA {
111 return &PA{
112 Prompt: &survey.Confirm{
113 Message: prompt,
114 Help: help,
115 Default: defaultResponse,
116 },
117 Answer: response,
118 }
119}
120
121func NewMockAsker(t *testing.T, pa []*PA) (question.Asker, CheckRemaining) {
122 expectedQuestionIndex := 0

Calls

no outgoing calls