(opts *DisableOptions)
| 69 | } |
| 70 | |
| 71 | func 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 | } |