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 {