Controls, Startup&Driver improvements

This commit is contained in:
2023-08-09 11:54:32 +02:00
parent 2528487ff6
commit d549733b71
49 changed files with 875 additions and 120 deletions

View File

@@ -0,0 +1,26 @@
using System.Text;
using FileTime.App.Core.Configuration;
using FileTime.ConsoleUI.App.Configuration;
namespace FileTime.ConsoleUI;
public static class Help
{
public static void PrintHelp()
{
StringBuilder sb = new();
sb.AppendLine("Options:");
PrintDriverOption(sb);
Console.Write(sb.ToString());
}
public static void PrintDriverOption(StringBuilder sb)
{
sb.AppendLine($"--{SectionNames.ApplicationSectionName}.{nameof(ConsoleApplicationConfiguration.ConsoleDriver)}");
foreach (var driver in Startup.Drivers.Keys)
{
sb.AppendLine("\t" + driver);
}
}
}