mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
16 lines
360 B
C#
16 lines
360 B
C#
namespace RemSox.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;
|
|
}
|
|
}
|