mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix driver name options shown in UICatalog for v2 (#3940)
- v2 auto picks based on OS - v2win is the new windows interop driver - v2net is the new dotnet core cross platform driver Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -147,8 +147,10 @@ public class UICatalogApp
|
||||
// If no driver is provided, the default driver is used.
|
||||
Option<string> driverOption = new Option<string> ("--driver", "The IConsoleDriver to use.").FromAmong (
|
||||
Application.GetDriverTypes ()
|
||||
.Select (d => d!.Name)
|
||||
.ToArray ()
|
||||
.Where (d=>!typeof (IConsoleDriverFacade).IsAssignableFrom (d))
|
||||
.Select (d => d!.Name)
|
||||
.Union (["v2","v2win","v2net"])
|
||||
.ToArray ()
|
||||
);
|
||||
driverOption.AddAlias ("-d");
|
||||
driverOption.AddAlias ("--d");
|
||||
|
||||
Reference in New Issue
Block a user