Skip to content
Snippets Groups Projects
Unverified Commit 2d0b63c2 authored by GyDi's avatar GyDi Committed by GitHub
Browse files

feat: add some commands

parent 34e941c8
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......@@ -130,6 +130,7 @@ export namespace CmdType {
traffic_graph?: boolean;
enable_tun_mode?: boolean;
enable_auto_launch?: boolean;
enable_service_mode?: boolean;
enable_silent_start?: boolean;
enable_system_proxy?: boolean;
enable_proxy_guard?: boolean;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment