summaryrefslogtreecommitdiffstats
path: root/src/client/view.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 /src/client/view.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 '')
-rw-r--r--src/client/view.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/view.rs b/src/client/view.rs
index 9443726..d2ccadb 100644
--- a/src/client/view.rs
+++ b/src/client/view.rs
@@ -274,6 +274,10 @@ pub enum View {
274pub enum Command { 274pub enum Command {
275 /// The credential is already hashed by the frontend. 275 /// The credential is already hashed by the frontend.
276 Login { user: String, credential: String }, 276 Login { user: String, credential: String },
277 Games,
278 Ping,
279 Echo(String),
280 Info,
277 Register { user: String, credential: String }, 281 Register { user: String, credential: String },
278 Play { game: String, bet: Option<u64> }, 282 Play { game: String, bet: Option<u64> },
279 History { limit: u32 }, 283 History { limit: u32 },