Files
RemSox/RemSox.Kernel/UI/CLI/Commands/RebootCommand.cs
T

16 lines
367 B
C#

namespace RemSox.Kernel.UI.CLI.Commands;
public class RebootCommand : ICommand
{
public string Name => "reboot";
public string Description => "Reboot the system";
public Task ExecuteAsync(string? arguments, Action<string> printLine)
{
printLine("Rebooting system...");
Sys.Power.Reboot();
return Task.CompletedTask;
}
}