From 6dfd142d3c5847ca4bec0c41604b0d2a4c7e439f Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 2 Aug 2026 07:07:13 +0200 Subject: [PATCH] Restart command --- src/engine/engine/command.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/engine/command.rs b/src/engine/engine/command.rs index 3d18823..07bf9e2 100644 --- a/src/engine/engine/command.rs +++ b/src/engine/engine/command.rs @@ -38,6 +38,7 @@ impl Engine { ("preset list", "List available presets"), ("preset use ", "Switch active preset"), ("strategy start", "Start strategy runtime"), + ("strategy restart", "Restart strategy runtime"), ("strategy set ", "Change active strategy"), ("strategy ", "Send command to strategy runtime"), ]; @@ -236,6 +237,12 @@ impl Engine { match strategy_command { "start" => {} + "restart" => { + self.strategy_engine + .reload(&self.config.lock().await.get_ref()?.strategy) + .await?; + } + "set" => { set_cfg!(id);