Skip to main content

execute

Function execute 

Source
pub async fn execute(
    provider: &Provider,
    raw_args: &[String],
    keyring: &Keyring,
) -> Result<Value, CliError>
Expand description

Execute a CLI provider tool as a subprocess.

Builds a curated environment (only safe vars from the host + resolved provider env), spawns the CLI command with the provider’s default args plus the caller’s raw args, enforces a timeout, and returns stdout parsed as JSON (or as a plain string fallback).