(inv *serpent.Invocation)
| 613 | } |
| 614 | |
| 615 | func promptDevelopers(inv *serpent.Invocation) (string, error) { |
| 616 | selection, err := cliui.Select(inv, cliui.SelectOptions{ |
| 617 | Options: developerBuckets, |
| 618 | HideSearch: false, |
| 619 | Message: "Select the number of developers:", |
| 620 | }) |
| 621 | if err != nil { |
| 622 | return "", xerrors.Errorf("select developers: %w", err) |
| 623 | } |
| 624 | return selection, nil |
| 625 | } |
| 626 | |
| 627 | func promptCountry(inv *serpent.Invocation) (string, error) { |
| 628 | options := make([]string, len(codersdk.Countries)) |