pub async fn spawn_plugin_process(
process_id: u64,
command: String,
args: Vec<String>,
cwd: Option<String>,
sender: Sender<PluginAsyncMessage>,
)Expand description
Spawn an external process for a plugin
This function:
- Spawns the process asynchronously
- Captures all stdout and stderr
- Waits for process completion
- Sends results back via AsyncBridge with process_id for callback matching
§Arguments
process_id- Unique ID to match with callbackcommand- Command to execute (e.g., “git”)args- Command argumentscwd- Optional working directorysender- Channel to send results back to main loop