From f086e1d674ddcacda91feac5adf65fb5edc35101 Mon Sep 17 00:00:00 2001 From: drvxor Date: Sun, 23 Aug 2026 13:37:35 +0300 Subject: [PATCH] Add Args type --- src/builtin/types.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/builtin/types.zig b/src/builtin/types.zig index c3feb4d..af154fb 100644 --- a/src/builtin/types.zig +++ b/src/builtin/types.zig @@ -1,5 +1,7 @@ const std = @import("std"); +pub const Args = []const []const u8; + pub const Shell = struct { running: bool = true, interrupted: bool = false, @@ -10,7 +12,7 @@ pub const CommandContext = struct { io: std.Io, allocator: std.mem.Allocator, shell: *Shell, - argv: []const []const u8, + argv: Args, stdin: std.Io.File, stdout: std.Io.File, @@ -24,7 +26,7 @@ pub const ResolvedCommand = union(enum) { }; pub const Command = struct { - argv: []const []const u8, + argv: Args, }; pub const Pipeline = struct {