mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-03 13:44:14 +01:00
feat(cli): implement generate-static-config cmd
This commit is contained in:
1 parent
c59e882a2d
commit
8f36549fae
4 files changed
+17
-4
No files matched your search
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user