From 50806ba81abc0786b1740c8fac9323957a67a7a0 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Thu, 28 Aug 2025 14:56:49 -0300 Subject: [PATCH] fix: add missing cmd and settings fields to AppState Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) --- src/modes/server/common.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modes/server/common.rs b/src/modes/server/common.rs index a8bc4b4..aad494a 100644 --- a/src/modes/server/common.rs +++ b/src/modes/server/common.rs @@ -16,6 +16,7 @@ use std::time::Instant; use tokio::sync::Mutex; use utoipa::ToSchema; use crate::services::item_service::ItemService; +use clap::Command; #[derive(Debug, Clone)] pub struct ServerConfig { @@ -30,6 +31,8 @@ pub struct AppState { pub db: Arc>, pub data_dir: PathBuf, pub item_service: Arc, + pub cmd: Arc>, + pub settings: Arc, } #[derive(Debug, Serialize, Deserialize, ToSchema)]