using System.Text.Json; using XFEEDToolBox.Views; namespace XFEEDToolBox; public partial class App { // Read-only application preflight: never sends flight inputs or invokes target selection. private static async Task RunNavigationCheckAsync(string[] args,string reportPath) { if(File.Exists(reportPath))throw new IOException("Use a new navigation check report path."); var destination=GetArgument(args,"--check-destination"); AppShellPage.Current!.Navigate(typeof(NavigationPage)); await Task.Delay(150); object Snapshot()=>new { destination=ViewModel.NavigationDestination, routeMatches=ViewModel.NavigationRouteMatches, pluginReady=ViewModel.PluginNavigationReady, driverBound=Runtime.FlightDriver is not null, commandEnabled=ViewModel.StartNavigationCommand.CanExecute(null), buttonEnabled=Descendants(AppShellPage.Current!.CurrentPage).OfType