diff options
| author | Robert Günzler <r@gnzler.io> | 2025-10-06 18:02:52 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-11-22 21:56:26 +0100 |
| commit | 20ce4e9288547e8742e3664bd4c67a0a6f3224f6 (patch) | |
| tree | 296617aef8321c28492c1576250928f988faff9a /src/exe.zig | |
| parent | 67f9f8ead540b57585ff1e5d5e1457ed2152027d (diff) | |
| download | site-20ce4e9288547e8742e3664bd4c67a0a6f3224f6.tar.gz | |
rbl: add serve command
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'src/exe.zig')
| -rw-r--r-- | src/exe.zig | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |