feat: add force_terminate command

This commit is contained in:
CJ van den Berg 2024-07-02 12:21:40 +02:00
parent 6e2c149088
commit 16ec05c75b
2 changed files with 8 additions and 2 deletions

View file

@ -514,6 +514,12 @@ const cmds = struct {
try tp.self_pid().send("restart");
}
pub fn force_terminate(self: *Self, _: Ctx) Result {
self.deinit();
root.print_exit_status({}, "FORCE TERMINATE");
root.exit(99);
}
pub fn theme_next(self: *Self, _: Ctx) Result {
self.theme = get_next_theme_by_name(self.theme.name);
self.config.theme = self.theme.name;