Add Args type

This commit is contained in:
2026-08-23 13:37:35 +03:00
parent c322391fca
commit f086e1d674
+4 -2
View File
@@ -1,5 +1,7 @@
const std = @import("std"); const std = @import("std");
pub const Args = []const []const u8;
pub const Shell = struct { pub const Shell = struct {
running: bool = true, running: bool = true,
interrupted: bool = false, interrupted: bool = false,
@@ -10,7 +12,7 @@ pub const CommandContext = struct {
io: std.Io, io: std.Io,
allocator: std.mem.Allocator, allocator: std.mem.Allocator,
shell: *Shell, shell: *Shell,
argv: []const []const u8, argv: Args,
stdin: std.Io.File, stdin: std.Io.File,
stdout: std.Io.File, stdout: std.Io.File,
@@ -24,7 +26,7 @@ pub const ResolvedCommand = union(enum) {
}; };
pub const Command = struct { pub const Command = struct {
argv: []const []const u8, argv: Args,
}; };
pub const Pipeline = struct { pub const Pipeline = struct {