summaryrefslogtreecommitdiffstats
path: root/tests/client_ui.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-01 19:19:49 +0100
committersalmonik <salmonik@tuta.io>2026-11-01 19:19:49 +0100
commit24e3bb54db579fb9aad8df2a591527dc77fe4cb4 (patch)
treeaf9a0c290f2675068e8396823f641f24bbe4d308 /tests/client_ui.rs
parentv4.0.6: move the prompt editor and key mapping out of the core (diff)
downloadzagan-bet-24e3bb54db579fb9aad8df2a591527dc77fe4cb4.tar.gz
zagan-bet-24e3bb54db579fb9aad8df2a591527dc77fe4cb4.zip
v4.0.7: finish the Phase 1 boundary with a command shell
The terminal command line moves to client::shell: a typed line becomes a core Command or an adapter action (connect, login, register, set-credential, host maintenance). ClientCore loses submit_line and the last TUI-shaped effects (Interactive, SetPrompt, ListHosts, ForgetHost, AnimateRoulette); the adapter animates roulette from the Result view. Adds forget-login, which drops the stored credential for the pinned key and keeps trust, distinct from logout (session only) and forget-host (trust too).
Diffstat (limited to 'tests/client_ui.rs')
-rw-r--r--tests/client_ui.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/client_ui.rs b/tests/client_ui.rs
index 6e00903..bd9ccbc 100644
--- a/tests/client_ui.rs
+++ b/tests/client_ui.rs
@@ -27,7 +27,8 @@ fn help_documents_every_command() {
27fn completion_knows_every_command() { 27fn completion_knows_every_command() {
28 let commands = command_names(); 28 let commands = command_names();
29 for expected in [ 29 for expected in [
30 "connect", "games", "play", "hosts", "send", "logout", "quit", 30 "connect", "games", "play", "hosts", "forget-host", "forget-login", "send", "logout",
31 "quit",
31 ] { 32 ] {
32 assert!( 33 assert!(
33 commands.contains(&expected), 34 commands.contains(&expected),