Add config-driven action system (launch, url) with factory pattern

This commit is contained in:
2026-08-25 00:48:09 +02:00
parent 909d9aa13c
commit 56bf3ff5bf
8 changed files with 86 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
using System.Diagnostics;
public class LaunchAction : IAction
{
private readonly string _target;
public LaunchAction(string target) => _target = target;
public void Execute()
{
Process.Start(new ProcessStartInfo(_target) { UseShellExecute = true });
}
}