summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 42675b5..30aacca 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -13,6 +13,9 @@ pub fn main() !void {
const command = try stdin.takeDelimiter('\n');
if (command) |cmd| {
+ if (std.mem.eql(u8, cmd, "exit")) {
+ break;
+ }
try stdout.print("{s}: command not found\n", .{cmd});
} else {
break;