feat: initial config command implementation

This commit is contained in:
Stevan Freeborn
2025-02-18 23:28:56 -06:00
parent ec9651e5e9
commit ba1d668ade
4 changed files with 117 additions and 16 deletions
+2 -14
View File
@@ -1,16 +1,4 @@
// TODO: Need to implement config
// command. This should allow
// the user to set default values
// for provider keys and a default
// provider.
//
// For example setting a providers key
// i.e. altgen config gemini mykey
//
// Or setting provider as default
// i.e. altgen config gemini mykey --default
await Host.CreateDefaultBuilder(args)
await Host.CreateDefaultBuilder(args)
.ConfigureLogging(static l => l.ClearProviders())
.ConfigureServices(static (_, services) =>
{
@@ -20,4 +8,4 @@ await Host.CreateDefaultBuilder(args)
.AddStandardResilienceHandler();
})
.BuildApp()
.RunAsync(args);
.RunAsync(args);