Restore Mirror Cluster Picker Feature · Entire
i could have sworn that a week or two ago, i landed a feature in the cli (this repo) that would let the command entire repo mirror create owner/repo offer the user a list of clusters (aws regions) into which they can mirror. find out why that's gone again.
Bottom line: it's not gone — you deliberately scoped it down yourself, in the same PR that added it. The cluster picker was confined to the bare no-args wizard; create owner/repo was reverted to the fixed default cluster before the PR ever merged.
- The whole arc happened inside https://github.com/entireio/cli/pull/1519 (
cor-645-cli-smooth-mirror-onboarding-flow, merged June 26):993f948bf(Jun 24) added the onboarding wizard with the region multi-select fed byGET /api/v1/clusters.289a796c8+6f7d46408(Jun 25) made the one-shotcreate <github-url>resolve its cluster from the same catalog (jurisdiction-aware default, printed "Using default cluster X" — it auto-picked, it never showed a list on this path).68e81f383(Jun 25, during PR review) reverted exactly that: "Limit cluster guessing to the interactive wizard… so non-interactive invocations (and scripts) keep stable, predictable defaults." It deletedresolveDefaultClusterHost/callerJurisdiction/pickDefaultRegionHostand put the one-shot back on the hardcodeddefaultClusterHost = "aws-us-east-2.entire.io"(cmd/entire/cli/repo_mirror.go:55).
- So current behavior on main is intentional and consistent:
entire repo mirror create(bare) → interactive wizard, repo picker + cluster/region multi-select, jurisdiction-ordered. Still alive and well inrepo_mirror_create_wizard.go.entire repo mirror create owner/repo→ one-shot, fixed us-east-2 default unless you pass[cluster-host]as the second arg. No catalog call, no picker.
- The rationale recorded in the revert commit: scripts and non-interactive callers should get a stable default rather than a network-dependent, jurisdiction-dependent guess.
If you now want the arg-form to prompt with a cluster list when running on a TTY (falling back to the fixed default non-interactively — same pattern as entire repo clone's "prompt only when several clusters are possible"), that's a small change since availableRegions/clusterChoices already exist. Say the word and I'll wire it up.
yes i want that. go ahead and make the PR.
PR is up: https://github.com/entireio/cli/pull/1645
entire repo mirror create owner/repoon a TTY now fetches the cluster catalog and prompts with a single-select when[cluster-host]is omitted — jurisdiction default pre-selected, prompt skipped when only one cluster exists (same shape asrepo clone). Non-interactive runs keep the fixedaws-us-east-2.entire.iodefault with no network lookup, so the script-stability concern that motivated the #1519 revert is preserved.- Implementation reuses the wizard's existing
availableRegions/clusterChoices; new code isresolveOneShotClusterHost+pickOneClusterinrepo_mirror_create_wizard.go, plus a test locking in the non-interactive fallback. - Verified:
mise run fmt,mise run lint(0 issues), and fullmise run test:ci(unit + integration + canary) all green.