Add Args type
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user