feat: add shell info
This commit is contained in:
@@ -22,4 +22,8 @@ pub fn main() !void {
|
|||||||
const uptime = try os_module.getSystemUptime();
|
const uptime = try os_module.getSystemUptime();
|
||||||
try stdout.print("Uptime: {} days, {} hours, {} minutes\n", .{ uptime.days, uptime.hours, uptime.minutes });
|
try stdout.print("Uptime: {} days, {} hours, {} minutes\n", .{ uptime.days, uptime.hours, uptime.minutes });
|
||||||
try bw.flush();
|
try bw.flush();
|
||||||
|
|
||||||
|
const shell = try os_module.getShell(allocator);
|
||||||
|
try stdout.print("Shell: {s}", .{shell});
|
||||||
|
try bw.flush();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user