MCPcopy Index your code
hub / github.com/coder/coder / promptDevelopers

Function promptDevelopers

cli/login.go:615–625  ·  view source on GitHub ↗
(inv *serpent.Invocation)

Source from the content-addressed store, hash-verified

613}
614
615func 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
627func promptCountry(inv *serpent.Invocation) (string, error) {
628 options := make([]string, len(codersdk.Countries))

Callers 1

loginMethod · 0.85

Calls 2

SelectFunction · 0.92
ErrorfMethod · 0.45

Tested by

no test coverage detected