mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-09 17:11:28 +03:00
remove cli frontend in favour of cli subcommand (#278)
this removes the cli frontend entirely, replacing it with a subcommand instead
This commit is contained in:
committed by
GitHub
parent
7898f2362c
commit
2f6a3629ad
@@ -193,6 +193,9 @@ impl Service {
|
||||
FrontendRequest::ResolveDns(handle) => self.resolve(handle),
|
||||
FrontendRequest::Sync => self.sync_frontend(),
|
||||
FrontendRequest::RemoveAuthorizedKey(key) => self.remove_authorized_key(key),
|
||||
FrontendRequest::UpdateEnterHook(handle, enter_hook) => {
|
||||
self.update_enter_hook(handle, enter_hook)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,6 +479,11 @@ impl Service {
|
||||
self.broadcast_client(handle);
|
||||
}
|
||||
|
||||
fn update_enter_hook(&mut self, handle: ClientHandle, enter_hook: Option<String>) {
|
||||
self.client_manager.set_enter_hook(handle, enter_hook);
|
||||
self.broadcast_client(handle);
|
||||
}
|
||||
|
||||
fn broadcast_client(&mut self, handle: ClientHandle) {
|
||||
let event = self
|
||||
.client_manager
|
||||
|
||||
Reference in New Issue
Block a user