()
| 315 | /** Flatten all sources into a single checklist. Stable order: source first, |
| 316 | * then server name. */ |
| 317 | export function listMigrationEntries(): MigrationEntry[] { |
| 318 | const entries: MigrationEntry[] = []; |
| 319 | for (const source of discoverSources()) { |
| 320 | for (const [name, config] of Object.entries(source.servers)) { |
| 321 | entries.push({ |
| 322 | key: `${source.id}::${name}`, |
| 323 | source: source.id, |
| 324 | sourceLabel: source.label, |
| 325 | name, |
| 326 | config, |
| 327 | }); |
| 328 | } |
| 329 | } |
| 330 | return entries; |
| 331 | } |
| 332 | |
| 333 | /** Short summary of a server for the picker / dry-run output. */ |
| 334 | export function describeEntry(entry: MigrationEntry): string { |
no test coverage detected