diff options
author | Wouter Tinus <win.acme.simple@gmail.com> | 2020-02-05 21:00:44 +0100 |
---|---|---|
committer | Wouter Tinus <win.acme.simple@gmail.com> | 2020-02-05 21:00:44 +0100 |
commit | 72b7d33d7cf0dc9eb0856b51319fee9948ca3a19 (patch) | |
tree | 0bc7260273793cd9c4c7d8e6f20d0217bef1268d /src/main.lib/Services/Interfaces/IInputService.cs | |
parent | 7aa5ceebbd8c872efdc38c52fe7cbfce83db5270 (diff) | |
download | letsencrypt-win-simple-72b7d33d7cf0dc9eb0856b51319fee9948ca3a19.zip letsencrypt-win-simple-72b7d33d7cf0dc9eb0856b51319fee9948ca3a19.tar.gz letsencrypt-win-simple-72b7d33d7cf0dc9eb0856b51319fee9948ca3a19.tar.bz2 |
Be more specific about reasons for disabling options
Diffstat (limited to 'src/main.lib/Services/Interfaces/IInputService.cs')
-rw-r--r-- | src/main.lib/Services/Interfaces/IInputService.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.lib/Services/Interfaces/IInputService.cs b/src/main.lib/Services/Interfaces/IInputService.cs index 48daab4..78d155c 100644 --- a/src/main.lib/Services/Interfaces/IInputService.cs +++ b/src/main.lib/Services/Interfaces/IInputService.cs @@ -28,6 +28,7 @@ namespace PKISharp.WACS.Services string? command = null, bool @default = false, bool disabled = false, + string? disabledReason = null, ConsoleColor? color = null) { var newItem = new Choice<TItem>(item); @@ -40,6 +41,7 @@ namespace PKISharp.WACS.Services newItem.Command = command; newItem.Color = color; newItem.Disabled = disabled; + newItem.DisabledReason = disabledReason; newItem.Default = @default; return newItem; } @@ -48,6 +50,7 @@ namespace PKISharp.WACS.Services public string? Description { get; set; } public bool Default { get; set; } public bool Disabled { get; set; } + public string? DisabledReason { get; set; } public ConsoleColor? Color { get; set; } } |