Skip to content

feat: Interactive server selector for multi-host .arcrc#176

Merged
holmboe merged 1 commit intomasterfrom
feat/interactive-server-selector
Mar 8, 2026
Merged

feat: Interactive server selector for multi-host .arcrc#176
holmboe merged 1 commit intomasterfrom
feat/interactive-server-selector

Conversation

@holmboe
Copy link
Contributor

@holmboe holmboe commented Mar 8, 2026

Summary

  • When ~/.arcrc has multiple hosts and no PHAB_URL is configured, show an interactive arrow-key selector (via InquirerPy) in TTY mode, with a tip on how to skip the prompt next time. Non-TTY keeps the existing error.
  • Replace the custom 70-line _read_password_with_dots() in setup.py with InquirerPy's inquirer.secret().
  • Add InquirerPy>=0.3.4 as a dependency.

Closes #175

Test plan

  • All 332 existing tests pass
  • New tests: interactive selector returns correct host/token, tip printed to stderr, non-TTY still raises error
  • ruff check clean
  • Manual: with multi-host ~/.arcrc and no PHAB_URL, verify arrow-key selector appears and tip is printed

🤖 Generated with Claude Code

When ~/.arcrc has multiple hosts and no PHAB_URL is configured, show an
interactive arrow-key selector (via InquirerPy) when running in a TTY,
with a tip on how to skip the prompt. Non-TTY keeps the existing error.

Also replaces the custom 70-line _read_password_with_dots() in setup.py
with InquirerPy's inquirer.secret().

Closes #175

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@holmboe holmboe force-pushed the feat/interactive-server-selector branch from deae3da to 6751179 Compare March 8, 2026 21:25
@holmboe holmboe merged commit 52d045a into master Mar 8, 2026
17 checks passed
@holmboe holmboe deleted the feat/interactive-server-selector branch March 8, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactive server selector when multiple hosts in .arcrc and no PHAB_URL

1 participant