MCPcopy Create free account
hub / github.com/GCWing/BitFun / remote_remove_workspace

Function remote_remove_workspace

src/apps/desktop/src/api/ssh_api.rs:459–473  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    connection_id: String,
    remote_path: String,
)

Source from the content-addressed store, hash-verified

457
458#[tauri::command]
459pub async fn remote_remove_workspace(
460 state: State<'_, AppState>,
461 connection_id: String,
462 remote_path: String,
463) -> Result<(), String> {
464 state
465 .unregister_remote_workspace_entry(&connection_id, &remote_path)
466 .await;
467 log::info!(
468 "Removed remote workspace restore entry: connection_id={}, remote_path={}",
469 connection_id,
470 remote_path
471 );
472 Ok(())
473}
474
475#[tauri::command]
476pub async fn remote_get_workspace_info(

Callers

nothing calls this directly

Tested by

no test coverage detected