From a6e3fca1dd61deadd5667f4673c25021f61c0fe5 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 23 Oct 2026 02:02:33 +0200 Subject: [PATCH] horizon-ctl: interact-entity beside hold, away from the logs arm Co-Authored-By: Claude Opus 5.5 --- .../horizon-client/src/bin/horizon-ctl/main.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/horizon-client/src/bin/horizon-ctl/main.rs b/crates/horizon-client/src/bin/horizon-ctl/main.rs index 9c2cab8fa..d743aa09b 100644 --- a/crates/horizon-client/src/bin/horizon-ctl/main.rs +++ b/crates/horizon-client/src/bin/horizon-ctl/main.rs @@ -174,15 +174,6 @@ impl Session { ready["launch"] = reply; Ok(ready) } - "hold" => { - let (key, seconds) = match words { - [_, key, _] => (key.clone(), number(2, "SECONDS")?), - _ => return Err(Failure::usage(format!("usage: {}", usage(name)))), - }; - self.game(&format!("key {key} down"))?; - thread::sleep(Duration::from_secs_f64(seconds.max(0.0))); - self.game(&format!("key {key} up")) - } "interact-entity" => { let id = match words { [_, id] if id.parse::().is_ok() => id, @@ -195,6 +186,15 @@ impl Session { screen["ok"] = json!(true); Ok(screen) } + "hold" => { + let (key, seconds) = match words { + [_, key, _] => (key.clone(), number(2, "SECONDS")?), + _ => return Err(Failure::usage(format!("usage: {}", usage(name)))), + }; + self.game(&format!("key {key} down"))?; + thread::sleep(Duration::from_secs_f64(seconds.max(0.0))); + self.game(&format!("key {key} up")) + } "logs" => logs(&horizon_client::logging::game_home(), &words[1..]), "wait-ready" => { let limit = if words.len() > 1 {