feat: Introduce ITranscriptionOrchestrator and related interfaces, refactoring DaemonService and other components to use dependency injection.
This commit is contained in:
@@ -9,7 +9,8 @@ public static class ConfigUpdaterCommand
|
||||
public static async Task ExecuteAsync(string key, string val, bool verbose)
|
||||
{
|
||||
Toak.Core.Logger.Verbose = verbose;
|
||||
var config = ConfigManager.LoadConfig();
|
||||
var configManager = new ConfigManager();
|
||||
var config = configManager.LoadConfig();
|
||||
key = key.ToLowerInvariant();
|
||||
val = val.ToLowerInvariant();
|
||||
|
||||
@@ -33,7 +34,7 @@ public static class ConfigUpdaterCommand
|
||||
return;
|
||||
}
|
||||
|
||||
ConfigManager.SaveConfig(config);
|
||||
configManager.SaveConfig(config);
|
||||
AnsiConsole.MarkupLine($"[green]Successfully[/] set {key} to [blue]{val}[/].");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user