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

Function PromptMissing

pkg/cmd/tenant/create/create.go:98–117  ·  view source on GitHub ↗
(opts *CreateOptions)

Source from the content-addressed store, hash-verified

96}
97
98func PromptMissing(opts *CreateOptions) ([]cmd.Dependable, error) {
99 nestedOpts := []cmd.Dependable{}
100
101 question.AskName(opts.Ask, "", "tenant", &opts.Name.Value)
102 question.AskDescription(opts.Ask, "", "tenant", &opts.Description.Value)
103
104 tagSets, err := opts.GetAllTagsCallback()
105 if err != nil {
106 return nil, err
107 }
108
109 tags, err := selectors.Tags(opts.Ask, []string{}, opts.Tag.Value, tagSets)
110 if err != nil {
111 return nil, err
112 }
113 opts.Tag.Value = tags
114
115 nestedOpts = append(nestedOpts, opts)
116 return nestedOpts, nil
117}

Callers 1

createRunFunction · 0.70

Calls 3

AskNameFunction · 0.92
AskDescriptionFunction · 0.92
TagsFunction · 0.92

Tested by

no test coverage detected