(
state: State<'_, AppState>,
)
| 23 | |
| 24 | #[tauri::command] |
| 25 | pub async fn ssh_list_saved_connections( |
| 26 | state: State<'_, AppState>, |
| 27 | ) -> Result<Vec<SavedConnection>, String> { |
| 28 | let manager = state.get_ssh_manager_async().await?; |
| 29 | let connections = manager.get_saved_connections().await; |
| 30 | log::info!( |
| 31 | "ssh_list_saved_connections returning {} connections", |
| 32 | connections.len() |
| 33 | ); |
| 34 | for conn in &connections { |
| 35 | log::info!( |
| 36 | " - id={}, name={}, host={}:{}", |
| 37 | conn.id, |
| 38 | conn.name, |
| 39 | conn.host, |
| 40 | conn.port |
| 41 | ); |
| 42 | } |
| 43 | Ok(connections) |
| 44 | } |
| 45 | |
| 46 | #[tauri::command] |
| 47 | pub async fn ssh_save_connection( |
nothing calls this directly
no test coverage detected