mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-28 11:22:47 +01:00
refactor(windows): print the Windows view of the schema of komorebi-config
komorebic static-config-schema prints schema::view::<StaticConfig>(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.
This commit is contained in:
1 parent
2200bec995
commit
6cbeee20ae
1 file changed
+4
-3
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user