feat: add os info

This commit is contained in:
utox39
2025-03-10 23:11:02 +01:00
parent 4a05196764
commit 7de1c620b5

View File

@@ -9,6 +9,11 @@ pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
const allocator = gpa.allocator();
const os_info = try os_module.getOsInfo(allocator);
try stdout.print("OS: {s}\n", .{os_info});
try bw.flush();
allocator.free(os_info);
const username = try os_module.getUsername(allocator);
try stdout.print("User: {s}\n", .{username});
try bw.flush();