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