feat: reorganize service commands and implement logging for service management

This commit is contained in:
Tunglies
2025-03-26 15:02:08 +08:00
parent 5a0eb56f70
commit 81968a579d
6 changed files with 48 additions and 29 deletions

View File

@@ -511,13 +511,6 @@ impl CoreManager {
Ok(())
}
/// 强制重新安装服务供UI调用用户主动修复服务
pub async fn repair_service(&self) -> Result<()> {
service::force_reinstall_service().await?;
self.restart_core().await?;
Ok(())
}
/// 切换核心
pub async fn change_core(&self, clash_core: Option<String>) -> Result<(), String> {
if clash_core.is_none() {