mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
拆分代码10
This commit is contained in:
17
shell/Commands/System/WhoamiCommand.cs
Normal file
17
shell/Commands/System/WhoamiCommand.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user