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

Function PromptMissing

pkg/cmd/project/disable/disable.go:71–85  ·  view source on GitHub ↗
(opts *DisableOptions)

Source from the content-addressed store, hash-verified

69}
70
71func PromptMissing(opts *DisableOptions) error {
72 if opts.IdOrName == "" {
73 existingProjects, err := opts.Client.Projects.GetAll()
74 if err != nil {
75 return err
76 }
77 selectedProject, err := selectors.ByName(opts.Ask, existingProjects, "Select the project you wish to disable:")
78 if err != nil {
79 return err
80 }
81 opts.IdOrName = selectedProject.GetID()
82 }
83
84 return nil
85}

Callers 1

disableRunFunction · 0.70

Calls 1

ByNameFunction · 0.92

Tested by

no test coverage detected