feat: success console app => api => gemini

This commit is contained in:
Stevan Freeborn
2025-03-15 18:44:10 -05:00
parent 414e712f51
commit 45a0ead7d8
9 changed files with 86 additions and 22 deletions
@@ -9,6 +9,13 @@ static class HostBuilderExtensions
app.Configure(static c =>
{
c.SetExceptionHandler(static (ex, resolver) =>
{
var console = resolver?.Resolve(typeof(IAnsiConsole)) as IAnsiConsole;
console?.WriteException(ex, ExceptionFormats.ShortenEverything);
return -99;
});
c.AddBranch("config", static c =>
{
c.AddCommand<AddConfigCommand>("add");