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

Method Cleanup

pkg/surveyext/select.go:328–341  ·  view source on GitHub ↗
(config *survey.PromptConfig, val interface{})

Source from the content-addressed store, hash-verified

326}
327
328func (s *Select) Cleanup(config *survey.PromptConfig, val interface{}) error {
329 cursor := s.NewCursor()
330 cursor.Restore()
331 return s.Render(
332 SelectQuestionTemplate,
333 SelectTemplateData{
334 Select: *s,
335 Answer: val.(core.OptionAnswer).Value,
336 ShowAnswer: true,
337 Description: s.Description,
338 Config: config,
339 },
340 )
341}

Callers 6

TestPanicImmediatelyFunction · 0.45
TestReleaseCreateBasicsFunction · 0.45
TestReleaseListAndDeleteFunction · 0.45
CreateCommonProjectFunction · 0.45
TestAccountListFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestPanicImmediatelyFunction · 0.36
TestReleaseCreateBasicsFunction · 0.36
TestReleaseListAndDeleteFunction · 0.36
TestAccountListFunction · 0.36