MCPcopy Create free account
hub / github.com/cli/cli / getRepoVisibilityOptions

Function getRepoVisibilityOptions

pkg/cmd/repo/create/create.go:918–925  ·  view source on GitHub ↗
(owner string)

Source from the content-addressed store, hash-verified

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

Callers 2

interactiveRepoInfoFunction · 0.85

Calls

no outgoing calls

Tested by 1