diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 16:51:17 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 16:51:17 +0200 |
commit | 6141cdd85c5f01a001a1dc795226cd085a561383 (patch) | |
tree | 13496bd6e1400d1d829fa2c91594c77d39a3a769 /src/cmd.zig | |
parent | fa2069cc7e80d491cf19bb7ad9e11d97356882b9 (diff) |
Factor out the external command case.
Diffstat (limited to 'src/cmd.zig')
-rw-r--r-- | src/cmd.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd.zig b/src/cmd.zig index 8f4c971..25c0711 100644 --- a/src/cmd.zig +++ b/src/cmd.zig @@ -26,6 +26,7 @@ const Date = @import("cmd/date.zig").Date; const Time = @import("cmd/time.zig").Time; const Sort = @import("cmd/sort.zig").Sort; const Move = @import("cmd/move.zig").Move; +const External = @import("cmd/external.zig").External; pub const BuiltinCommand = union(enum) { // File-oriented @@ -155,10 +156,7 @@ pub const Command = union(enum) { command: *Command, redirects: ArrayList(Redirect), }, - External: struct { - program: []const u8, - args: ArrayList([]const u8), - }, + External: External, Builtin: BuiltinCommand, Empty, |