public void OnCommand(SystemCommandResult result)
 {
     if (result.CommandKind == CommandKind.Exit)
     {
         Console.WriteLine("Goodbye.");
         ExitListener?.Exit();
     }
     else if (result.CommandKind == CommandKind.Version)
     {
         Console.WriteLine($"Version {System.Reflection.Assembly.GetEntryAssembly().GetName().Version}");
     }
     else if (result.CommandKind == CommandKind.ClearConsole)
     {
         Console.Clear();
     }
     else if (result.CommandKind == CommandKind.Help)
     {
         HelpInfoWriter.WriteCommandList(CommandLibrary);
     }
 }
 public void OnCommand(HelpCommandResult result)
 {
     HelpInfoWriter.WriteHelpItem(result.CommandRootTarget);
 }