func SelectOrgPrompt(orgs []api.OrgResult) (int, string, error) {
	names := make([]string, len(orgs))
	for i, o := range orgs {
		names[i] = o.Body.Name
	}

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

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