refactor: modernize code, improve performance, and clean up various components.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Spectre.Console;
|
||||
using Toak.Configuration;
|
||||
using Toak.Core.Skills;
|
||||
@@ -12,7 +9,7 @@ public static class OnboardCommand
|
||||
{
|
||||
public static async Task ExecuteAsync(bool verbose)
|
||||
{
|
||||
Toak.Core.Logger.Verbose = verbose;
|
||||
Core.Logger.Verbose = verbose;
|
||||
var configManager = new ConfigManager();
|
||||
var config = configManager.LoadConfig();
|
||||
|
||||
@@ -121,7 +118,7 @@ public static class OnboardCommand
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Toak.Core.Logger.LogDebug($"Failed to restart toak service: {ex.Message}");
|
||||
Core.Logger.LogDebug($"Failed to restart toak service: {ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user