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

Function promptMissing

pkg/cmd/config/get/get.go:59–79  ·  view source on GitHub ↗
(ask question.Asker)

Source from the content-addressed store, hash-verified

57}
58
59func promptMissing(ask question.Asker) (string, error) {
60 keys := []string{
61 constants.ConfigApiKey,
62 constants.ConfigSpace,
63 constants.ConfigNoPrompt,
64 constants.ConfigUrl,
65 constants.ConfigOutputFormat,
66 constants.ConfigShowOctopus,
67 constants.ConfigEditor,
68 // constants.ConfigProxyUrl,
69 }
70
71 var selectKey string
72 if err := ask(&survey.Select{
73 Options: keys,
74 Message: "What key you would you would like to see the value of?",
75 }, &selectKey); err != nil {
76 return "", err
77 }
78 return selectKey, nil
79}

Callers 1

getRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected