feat: add save_session command

This commit is contained in:
CJ van den Berg 2025-12-06 21:13:04 +01:00
parent 7b9f3bf0c5
commit 8442edc80f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -355,6 +355,11 @@ const cmds = struct {
}
pub const quit_without_saving_meta: Meta = .{ .description = "Quit without saving" };
pub fn save_session(self: *Self, _: Ctx) Result {
try self.write_restore_info();
}
pub const save_session_meta: Meta = .{ .description = "Save session" };
pub fn store_session_and_quit(self: *Self, _: Ctx) Result {
try self.write_restore_info();
try tp.self_pid().send("quit");