fix: add back async commands

This commit is contained in:
CJ van den Berg 2024-11-19 21:57:43 +01:00
parent dc914ba562
commit fdf0c7ada9
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 10 additions and 2 deletions

View file

@ -816,6 +816,14 @@ const cmds = struct {
self.logger.print("restart flow to use changed key bindings", .{});
}
pub const open_keybind_config_meta = .{ .description = "Edit key bindings" };
pub fn run_async(_: *Self, ctx: Ctx) Result {
var cmd: []const u8 = undefined;
if (!try ctx.args.match(.{tp.extract(&cmd)}))
return tp.exit_error(error.InvalidArgument, null);
try tp.self_pid().send(.{ "cmd", cmd, .{} });
}
pub const run_async_meta = .{ .interactive = false };
};
pub const MiniMode = struct {