summaryrefslogtreecommitdiff
path: root/src/cmd/move.zig
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 16:40:52 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-14 16:40:52 +0200
commit14ccaa3a849c2fbf30595491e605643fbfd4f733 (patch)
tree1cffdcc80ab709ef4af81615e83927d070453be0 /src/cmd/move.zig
parentf40779cf8ebe81ffa802967587a83d71c74c1c7e (diff)
Factor out CLS, DATE, ECHO, MOVE, SORT, TIME, VER.
Diffstat (limited to 'src/cmd/move.zig')
-rw-r--r--src/cmd/move.zig24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cmd/move.zig b/src/cmd/move.zig
new file mode 100644
index 0000000..ceaa6db
--- /dev/null
+++ b/src/cmd/move.zig
@@ -0,0 +1,24 @@
+const std = @import("std");
+const Allocator = std.mem.Allocator;
+const print = std.debug.print;
+
+const types = @import("./types.zig");
+const CommandStatus = types.CommandStatus;
+const OutputCapture = types.OutputCapture;
+const InputSource = types.InputSource;
+
+pub const Move = struct {
+ pub fn eval(move: Move, allocator: Allocator, output_capture: ?*OutputCapture, input_source: ?*InputSource) !CommandStatus {
+ _ = move;
+ _ = allocator;
+ _ = input_source;
+
+ const error_msg = "MOVE command not yet implemented\n";
+ if (output_capture) |capture| {
+ try capture.write(error_msg);
+ } else {
+ print("{s}", .{error_msg});
+ }
+ return CommandStatus{ .Code = 1 };
+ }
+};