mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-08 23:41:57 +02:00
Refactor CLI command system to support async execution and central command history
This commit is contained in:
@@ -6,9 +6,10 @@ public sealed class ShutdownCommand : ICommand
|
||||
|
||||
public string Description => "Shutdown the system";
|
||||
|
||||
public void Execute(string? arguments, Action<string> printLine)
|
||||
public Task ExecuteAsync(string? arguments, Action<string> printLine)
|
||||
{
|
||||
printLine("Shutting down system...");
|
||||
Sys.Power.Shutdown();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user