(owner string)
| 917 | } |
| 918 | |
| 919 | func getRepoVisibilityOptions(owner string) []string { |
| 920 | visibilityOptions := []string{"Public", "Private"} |
| 921 | // orgs can also create internal repos |
| 922 | if owner != "" { |
| 923 | visibilityOptions = append(visibilityOptions, "Internal") |
| 924 | } |
| 925 | return visibilityOptions |
| 926 | } |
| 927 | |
| 928 | func interactiveRepoNameAndOwner(client *http.Client, hostname string, prompter iprompter, defaultName string) (string, string, error) { |
| 929 | name, err := prompter.Input("Repository name", defaultName) |
no outgoing calls