From 20ce4e9288547e8742e3664bd4c67a0a6f3224f6 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 6 Oct 2025 18:02:52 +0200 Subject: rbl: add serve command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- src/exe.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/exe.zig') diff --git a/src/exe.zig b/src/exe.zig index 56914b3..b246d56 100644 --- a/src/exe.zig +++ b/src/exe.zig @@ -138,7 +138,7 @@ pub fn captureStdout(ctx: *Context, argv: []const []const u8, env_map: ?*std.pro _ = result; } -pub fn shell(ctx: *Context, command: []const u8) !void { +pub fn shell(ctx: *Context, command: []const u8, env_map: ?*std.process.EnvMap) !void { const label = try std.fmt.allocPrint(ctx.allocator(), "running {s}", .{command}); defer ctx.allocator().free(label); @@ -152,6 +152,7 @@ pub fn shell(ctx: *Context, command: []const u8) !void { }, std.heap.page_allocator); p.progress_node = ctx.progress_nodes.getLast(); + p.env_map = env_map; try p.spawn(); const result = try p.wait(); -- cgit 1.4.1