diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 16:55:23 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-14 16:55:23 +0200 |
commit | 63f7353b630c3eb5a6c60118418923b4b358e670 (patch) | |
tree | 09a66bbb081d2cffcbb3dfc477e6293b1d1a7693 /src/cmd.zig | |
parent | 6141cdd85c5f01a001a1dc795226cd085a561383 (diff) |
Factor out redirect handling.
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 25c0711..6fec627 100644 --- a/src/cmd.zig +++ b/src/cmd.zig @@ -27,6 +27,7 @@ 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; +const RedirectCommand = @import("cmd/redirect.zig").RedirectCommand; pub const BuiltinCommand = union(enum) { // File-oriented @@ -152,10 +153,7 @@ pub const Command = union(enum) { left: *Command, right: *Command, }, - Redirect: struct { - command: *Command, - redirects: ArrayList(Redirect), - }, + Redirect: RedirectCommand, External: External, Builtin: BuiltinCommand, Empty, |