feat(cli): implement generate-static-config cmd

This commit is contained in:
LGUG2Z committed 2025-09-25 12:41:10 -07:00
1 parent c59e882a2d
commit 8f36549fae
4 files changed
+17 -4

No files matched your search

+5 -2
View File
@@ -1098,8 +1098,8 @@ enum SubCommand {
SocketSchema,
/// Generate a JSON Schema of the static configuration file
StaticConfigSchema,
// /// Generates a static configuration JSON file based on the current window manager state
// GenerateStaticConfig,
/// Generates a static configuration JSON file based on the current window manager state
GenerateStaticConfig,
// /// Generates the komorebi.lnk shortcut in shell:startup to autostart komorebi
// EnableAutostart(EnableAutostart),
// /// Deletes the komorebi.lnk shortcut in shell:startup to disable autostart
@@ -1773,6 +1773,9 @@ fn main() -> eyre::Result<()> {
SubCommand::UnsubscribeSocket(arg) => {
send_message(&SocketMessage::RemoveSubscriberSocket(arg.socket))?;
}
SubCommand::GenerateStaticConfig => {
print_query(&SocketMessage::GenerateStaticConfig);
}
}
Ok(())