SetupPrompter interface and UI-agnostic setup flow #930

Closed
opened 2026-10-27 13:38:20 +00:00 by sam · 0 comments
Owner

Port tau's split: setup logic lives in a package that takes a SetupPrompter interface; the command layer supplies the terminal implementation. This is what makes setup testable without a TTY.

Acceptance Criteria

Setup logic has no direct terminal dependency and is driven end to end in tests by a fake prompter. The terminal implementation provides a numbered Select and a non-echoing ReadSecret via golang.org/x/term, both cancellable on Ctrl+C via context. No TUI framework is introduced.


Imported from beads archie-core-1786637500339-402-d1d74f5e · GitHub #423 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08

Port tau's split: setup logic lives in a package that takes a SetupPrompter interface; the command layer supplies the terminal implementation. This is what makes setup testable without a TTY. ### Acceptance Criteria Setup logic has no direct terminal dependency and is driven end to end in tests by a fake prompter. The terminal implementation provides a numbered Select and a non-echoing ReadSecret via golang.org/x/term, both cancellable on Ctrl+C via context. No TUI framework is introduced. --- _Imported from beads `archie-core-1786637500339-402-d1d74f5e` · GitHub #423 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumfeature labels 2026-10-27 13:38:20 +00:00
sam self-assigned this 2026-10-27 13:38:20 +00:00
sam closed this issue 2026-10-27 13:38:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#930