2025-10-16 01:15:13 +01:00
|
|
|
using Aaru.Core;
|
2025-10-15 20:18:57 +01:00
|
|
|
using Avalonia;
|
|
|
|
|
using Consolonia;
|
|
|
|
|
|
2025-10-16 01:15:13 +01:00
|
|
|
namespace Aaru.Tui;
|
|
|
|
|
|
|
|
|
|
public static class Program
|
2025-10-15 20:18:57 +01:00
|
|
|
{
|
2025-10-16 01:15:13 +01:00
|
|
|
public static int Main(string[] args)
|
2025-10-15 20:18:57 +01:00
|
|
|
{
|
2025-10-16 01:15:13 +01:00
|
|
|
// There are too many places that depend on this being inited to be sure all are covered, so init it here.
|
|
|
|
|
PluginBase.Init();
|
2025-10-15 20:18:57 +01:00
|
|
|
|
2025-10-16 01:15:13 +01:00
|
|
|
return BuildAvaloniaApp().StartWithConsoleLifetime(args);
|
2025-10-15 20:18:57 +01:00
|
|
|
}
|
2025-10-16 01:15:13 +01:00
|
|
|
|
|
|
|
|
public static AppBuilder BuildAvaloniaApp() =>
|
|
|
|
|
AppBuilder.Configure<App>().UseConsolonia().UseAutoDetectedConsole().LogToException();
|
2025-10-15 20:18:57 +01:00
|
|
|
}
|