public Task OnExecute(CommandLineApplication app) { app.ShowVersion(); Console.WriteLine(Environment.NewLine); PrintChoicesMade(); Out.Dump($"Performing DLL discovery..."); DllDiscovery.LoadDllFiles(InputFolder); var eventType = DllDiscovery.FindEventTypeInDlls(); if (!eventType.Found) { Out.Fail("No event types found. Is this a Dolittle project output folder?"); return(Task.CompletedTask); } DllDiscovery.FindAllEvents(); DllDiscovery.MapEventsToEventHandlers(); if (!IgnoreEvents) { DllDiscovery.ReportIssues(); } DllDiscovery.WriteOutputFiles(OutputFolder, PreferJson); Out.Dump("Event mapping completed", overline: true); return(Task.CompletedTask); }
private void OnExecute(CommandLineApplication app) { app.ShowHelp(); Out.Fail("No command given."); }