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

Function AskDescription

pkg/question/input.go:65–76  ·  view source on GitHub ↗
(ask Asker, messagePrefix string, resourceDescription string, value *string)

Source from the content-addressed store, hash-verified

63}
64
65func AskDescription(ask Asker, messagePrefix string, resourceDescription string, value *string) error {
66 if *value == "" {
67 if err := ask(&survey.Input{
68 Message: messagePrefix + "Description",
69 Help: fmt.Sprintf("A short, memorable, description for this %s.", resourceDescription),
70 }, value); err != nil {
71 return err
72 }
73 }
74
75 return nil
76}

Callers 9

PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92
PromptMissingFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected