func SelectProjectPrompt(projects []api.ProjectResult) (int, string, error) {
	names := make([]string, len(projects))
	for i, p := range projects {
		names[i] = p.Body.Name
	}

	// Get the user's org selection
	prompt := promptui.SelectWithAdd{
		Label:    "Select project",
		Items:    names,
		AddLabel: "Create a new project",
		Validate: validateSlug("project"),
	}

	return prompt.Run()
}
// SelectProjectPrompt prompts the user to select an org from a list, or enter a new name
SelectProjectPrompt prompts the user to select an org from a list, or enter a new name
// SelectProjectPrompt prompts the user to select an org from a list or enter a new name
func SelectProjectPrompt(projects []api.ProjectResult) (int, string, error) {
	names := make([]string, len(projects))
	for i, p := range projects {
		names[i] = p.Body.Name
	}
	prompt := promptui.SelectWithAdd{
		Label:    "Select project",
		Items:    names,
		AddLabel: "Create a new project",
		Validate: validateSlug("project"),
	}
	return prompt.Run()
}
func SelectProjectPrompt ( projects [ ] api . ProjectResult ) ( int , string , error ) { names := make ( [ ] string , len ( projects ) ) for i , p := range projects { names [ i ] = p . Body . Name } prompt := promptui . SelectWithAdd { Label : " " , Items : names , AddLabel : " " , Validate : validateSlug ( " " ) , } return prompt . Run ( ) }
SelectProjectPrompt prompts the user to select an org from a list, or enter a new name
SelectProjectPrompt prompts the user to select an org from a list or enter a new name
// Get the user's org selection