| 1234567891011121314151617181920212223242526 |
- // See https://aka.ms/new-console-template for more information
- using qdr.app.tss.client.console;
- using Quadarax.Foundation.Core.QConsole;
- using Quadarax.Foundation.Core.QConsole.Configuration;
- using Quadarax.Foundation.Core.QConsole.Context;
- using Quadarax.Foundation.Core.Reflection.Extensions;
- using System.IO.Abstractions;
- using System.Reflection;
- var consoleVersion = Assembly.GetExecutingAssembly()?.GetName()?.Version;
- if (consoleVersion != null)
- {
- var config = new StartupConfiguration("tss.client.console", consoleVersion)
- {
- ConsoleCopyright = Assembly.GetExecutingAssembly().GetCopyright(),
- AllowInteractive = false,
- WaitOnKeyInNonInteractiveMode = false,
- CommandDefinitionAssembly = new Assembly[] { Assembly.GetEntryAssembly()! }
- };
- config.DisableDefaultCommands();
- config.ShowStatusOnEveryCommand = false;
- config.IsConsoleDebug = false;
- var console = new Engine(config, new TssEngineContext(new FileSystem()), args);
- console.Start();
- }
|