MCPcopy
hub / github.com/cli/cli / getRepoVisibilityOptions

Function getRepoVisibilityOptions

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

Source from the content-addressed store, hash-verified

917}
918
919func 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
928func interactiveRepoNameAndOwner(client *http.Client, hostname string, prompter iprompter, defaultName string) (string, string, error) {
929 name, err := prompter.Input("Repository name", defaultName)

Callers 2

interactiveRepoInfoFunction · 0.85

Calls

no outgoing calls

Tested by 1