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

Function remote_execute

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

Source from the content-addressed store, hash-verified

379
380#[tauri::command]
381pub async fn remote_execute(
382 state: State<'_, AppState>,
383 connection_id: String,
384 command: String,
385) -> Result<(String, String, i32), String> {
386 let manager = state.get_ssh_manager_async().await?;
387 manager
388 .execute_command(&connection_id, &command)
389 .await
390 .map_err(|e| e.to_string())
391}
392
393// === Remote Workspace Management ===
394

Callers

nothing calls this directly

Calls 2

get_ssh_manager_asyncMethod · 0.80
execute_commandMethod · 0.45

Tested by

no test coverage detected