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 {