feat: windows service mode

This commit is contained in:
GyDi
2022-04-24 21:00:17 +08:00
committed by GitHub
parent 2c2978b93a
commit 9f2534af3d
6 changed files with 339 additions and 72 deletions

View File

@@ -126,7 +126,12 @@ fn main() -> std::io::Result<()> {
cmds::change_profile_chain,
cmds::change_profile_valid,
cmds::read_profile_file,
cmds::save_profile_file
cmds::save_profile_file,
// service mode
cmds::service::start_service,
cmds::service::check_service,
cmds::service::install_service,
cmds::service::uninstall_service,
]);
#[cfg(target_os = "macos")]