manager: add proper support for options

This commit is contained in:
Pascal
2025-06-27 11:24:53 +02:00
parent d0e3d2fa61
commit 77a93b585a
8 changed files with 76 additions and 7 deletions

View File

@@ -15,6 +15,9 @@ public class InstallOption : IActionSet
[JsonConverter(typeof(StringEnumConverter))]
public Side Side { get; set; } = Side.Both;
[DefaultValue(false)]
public bool Default { get; }
public List<UpdateAction> UninstallActions { get; } = [];
IEnumerable<InstallAction> IActionSet.Actions => UninstallActions.Cast<InstallAction>();