(
state: State<'_, AppState>,
config: SSHConnectionConfig,
)
| 45 | |
| 46 | #[tauri::command] |
| 47 | pub async fn ssh_save_connection( |
| 48 | state: State<'_, AppState>, |
| 49 | config: SSHConnectionConfig, |
| 50 | ) -> Result<(), String> { |
| 51 | log::info!( |
| 52 | "ssh_save_connection called: id={}, host={}, port={}, username={}", |
| 53 | config.id, |
| 54 | config.host, |
| 55 | config.port, |
| 56 | config.username |
| 57 | ); |
| 58 | let manager = state.get_ssh_manager_async().await?; |
| 59 | manager |
| 60 | .save_connection(&config) |
| 61 | .await |
| 62 | .map_err(|e| e.to_string()) |
| 63 | } |
| 64 | |
| 65 | #[tauri::command] |
| 66 | pub async fn ssh_delete_connection( |
nothing calls this directly
no test coverage detected