Deprecated
pub fn allocPrintCmd(gpa: Allocator, argv: []const []const u8, options: AllocPrintCmdOptions) Allocator.Error![]u8
pub fn allocPrintCmd(gpa: Allocator, argv: []const []const u8, options: AllocPrintCmdOptions) Allocator.Error![]u8 {
var aw: Io.Writer.Allocating = .init(gpa);
defer aw.deinit();
SubprocessCommand.format(.{
.argv = argv,
.cwd = options.cwd,
.parent_env = options.parent_env,
.child_env = options.child_env,
}, &aw.writer) catch return error.OutOfMemory;
return aw.toOwnedSlice();
}