diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index b46023e..e5e4099 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,5 +1,6 @@ const std = @import("std"); const ls = @import("ls.zig"); +const socket_server = @import("socket-server.zig"); pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; @@ -18,6 +19,10 @@ pub fn main() !void { return; } + if (args.len == 2 and std.mem.eql(u8, args[1], "tcp-foo")) { + try socket_server.start_server(); + } + std.debug.print("Unknown command. Use 'help' for usage information.\n", .{}); print_help(); } |