(platform: string, existing: Record<string, unknown>)
| 76 | } |
| 77 | |
| 78 | export function generateConnectionName(platform: string, existing: Record<string, unknown>): string { |
| 79 | if (!existing[platform]) { |
| 80 | return platform; |
| 81 | } |
| 82 | let i = 1; |
| 83 | while (existing[`${platform}-${i}`]) { |
| 84 | i++; |
| 85 | } |
| 86 | return `${platform}-${i}`; |
| 87 | } |
| 88 | |
| 89 | export async function multiInput(options: { |
| 90 | message: string; |