mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-07 23:41:47 +02:00
Replace halt command with shutdown and add new reboot command
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace RemSox.UI.CLI.Commands;
|
||||
|
||||
public class RebootCommand : ICommand
|
||||
{
|
||||
public string Name => "reboot";
|
||||
|
||||
public string Description => "Reboot the system";
|
||||
|
||||
public void Execute(string? arguments, Action<string> printLine)
|
||||
{
|
||||
printLine("Rebooting system...");
|
||||
Sys.Power.Reboot();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user