From 6cbeee20aec6403b492751b9697f28d4a6956782 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 23:05:41 -0700 Subject: [PATCH] refactor(windows): print the Windows view of the schema of komorebi-config komorebic static-config-schema prints schema::view::(Platform::CURRENT) of the shared crate instead of deriving the schema of the daemon's own StaticConfig: the text is the same, and the oracle test proves the Windows view equals schema.json (once komorebi-themes drops its cfgs, the next revision). The daemon's StaticConfigSchema socket answer (which answers the SocketMessage schema on Windows today) is left alone. Verified: Windows cargo clippy --workspace --locked --all-targets -D warnings: clean (tier 2). Not verified: running komorebic.exe. --- komorebic/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index e925dd61..913191ab 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -3496,9 +3496,10 @@ if (Get-Command Get-CimInstance -ErrorAction SilentlyContinue) { SubCommand::StaticConfigSchema => { #[cfg(feature = "schemars")] { - let static_config = schemars::schema_for!(StaticConfig); - let schema = serde_json::to_string_pretty(&static_config)?; - println!("{schema}"); + let schema = komorebi_config::schema::view::< + komorebi_config::static_config::StaticConfig, + >(komorebi_config::schema::Platform::CURRENT); + print!("{schema}"); } } SubCommand::GenerateStaticConfig => {