refactor: rename root.zig to detection.zig
This commit is contained in:
8
src/detection.zig
Normal file
8
src/detection.zig
Normal file
@@ -0,0 +1,8 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub const os_module = switch (@import("builtin").os.tag) {
|
||||
.linux => @import("linux/linux.zig"),
|
||||
.macos => @import("macos/macos.zig"),
|
||||
.windows => @import("windows/windows.zig"),
|
||||
else => @compileError("Unsupported operating system"),
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
const std = @import("std");
|
||||
const os_module = @import("root.zig").os_module;
|
||||
const os_module = @import("detection.zig").os_module;
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout_file = std.io.getStdOut().writer();
|
||||
|
||||
Reference in New Issue
Block a user