fix: display::cmd_done for inform, remove unused imports, align README
This commit is contained in:
parent
5a15126a6a
commit
89ab74406f
3 changed files with 2 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ remote windows <device> # list visible windows
|
||||||
remote focus <device> <window_label> # focus a window
|
remote focus <device> <window_label> # focus a window
|
||||||
remote maximize <device> <window_label> # maximize and focus a window
|
remote maximize <device> <window_label> # maximize and focus a window
|
||||||
remote minimize-all <device> # minimize all windows
|
remote minimize-all <device> # minimize all windows
|
||||||
remote inform <device> "Something happened" # notify user (fire-and-forget, no response)
|
remote inform <device> "Something happened" # notify user (fire-and-forget, no response)
|
||||||
remote inform <device> "message" --title "Title" # with custom dialog title
|
remote inform <device> "message" --title "Title" # with custom dialog title
|
||||||
remote run <device> <program> [args...] # launch program (fire-and-forget)
|
remote run <device> <program> [args...] # launch program (fire-and-forget)
|
||||||
remote clipboard-get <device> # get clipboard text
|
remote clipboard-get <device> # get clipboard text
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,7 @@ async fn handle_message(
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
let _ = (msg, ttl);
|
let _ = (msg, ttl);
|
||||||
});
|
});
|
||||||
display::log_ok("inform", &message);
|
display::cmd_done("📢", "inform", &message, true, "sent");
|
||||||
ClientMessage::Ack { request_id }
|
ClientMessage::Ack { request_id }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ use axum::{
|
||||||
use axum::extract::ws::{Message, WebSocket};
|
use axum::extract::ws::{Message, WebSocket};
|
||||||
use futures_util::{SinkExt, StreamExt};
|
use futures_util::{SinkExt, StreamExt};
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use uuid::Uuid;
|
|
||||||
use tracing::{debug, error, info, warn};
|
use tracing::{debug, error, info, warn};
|
||||||
|
|
||||||
use helios_common::protocol::{ClientMessage, ServerMessage};
|
use helios_common::protocol::{ClientMessage, ServerMessage};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue