feat: add some commands

This commit is contained in:
GyDi
2022-04-24 21:03:47 +08:00
committed by GitHub
parent 34e941c8cb
commit 2d0b63c29d
2 changed files with 19 additions and 0 deletions

View File

@@ -105,3 +105,21 @@ export async function openLogsDir() {
Notice.error(err?.message || err.toString(), 1500)
);
}
/// service mode
export async function startService() {
return invoke<void>("start_service");
}
export async function checkService() {
return invoke<any>("check_service");
}
export async function installService() {
return invoke<void>("install_service");
}
export async function uninstallService() {
return invoke<void>("uninstall_service");
}