(
State(state): State<Arc<ServerState>>,
Json(req): Json<TuiCommandRequest>,
)
| 3841 | } |
| 3842 | |
| 3843 | async fn execute_tui_command( |
| 3844 | State(state): State<Arc<ServerState>>, |
| 3845 | Json(req): Json<TuiCommandRequest>, |
| 3846 | ) -> Result<Json<bool>> { |
| 3847 | let mapped = map_tui_command(&req.command); |
| 3848 | enqueue_tui_request( |
| 3849 | &state, |
| 3850 | "/tui/execute-command", |
| 3851 | serde_json::json!({ |
| 3852 | "command": mapped, |
| 3853 | "arguments": req.arguments, |
| 3854 | }), |
| 3855 | ) |
| 3856 | .await; |
| 3857 | Ok(Json(true)) |
| 3858 | } |
| 3859 | |
| 3860 | #[derive(Debug, Deserialize)] |
| 3861 | pub struct ToastRequest { |
nothing calls this directly
no test coverage detected