mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-05 23:50:48 +00:00
- Extract interactive_pick() to shared/common.sh: generic numbered-menu picker that replaces 4 duplicate _pick_location/_pick_server_type/_pick_plan functions across hetzner and hostinger (156 lines -> 71 lines) - Replace ensure_fly_token() (53 lines) with ensure_api_token_with_provider() plus a flyctl CLI auth pre-check (17 lines) - Replace ensure_render_api_key() (38 lines + _save_render_api_key 8 lines) with ensure_api_token_with_provider() (6 lines) Net reduction: 156 lines removed across 5 files. No functionality changes. Agent: complexity-hunter Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||