拆分代码10

This commit is contained in:
2026-02-04 22:09:01 +08:00
parent 2c36c08ca0
commit 147e2d6881
9 changed files with 124 additions and 52 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace CMLeonOS.Commands.System
{
public static class WhoamiCommand
{
public static void ShowCurrentUsername(CMLeonOS.UserSystem userSystem)
{
Console.WriteLine("====================================");
Console.WriteLine(" Current User");
Console.WriteLine("====================================");
Console.WriteLine();
Console.WriteLine($"Username: {userSystem.CurrentUsername}");
Console.WriteLine();
}
}
}