Intention of verbose is to print all sub-process command lines to stderr before spawning them.
pub fn handleVerbose(
graph: *const Graph,
cwd: ?[]const u8,
opt_env: ?*const std.process.Environ.Map,
argv: []const []const u8,
) error
pub fn handleVerbose(
graph: *const Graph,
cwd: ?[]const u8,
opt_env: ?*const std.process.Environ.Map,
argv: []const []const u8,
) error{OutOfMemory}!void {
if (!graph.verbose) return;
const arena = graph.arena;
const text = try std.zig.allocPrintCmd(arena, argv, .{
.cwd = cwd,
.parent_env = &graph.environ_map,
.child_env = opt_env,
});
defer arena.free(text);
std.log.scoped(.verbose).info("{s}", .{text});
}