MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / sandbox_exec

Function sandbox_exec

crates/openshell-cli/src/ssh.rs:569–577  ·  view source on GitHub ↗

Execute a command in a sandbox via SSH.

(
    server: &str,
    name: &str,
    command: &[String],
    tty: bool,
    tls: &TlsOptions,
)

Source from the content-addressed store, hash-verified

567
568/// Execute a command in a sandbox via SSH.
569pub async fn sandbox_exec(
570 server: &str,
571 name: &str,
572 command: &[String],
573 tty: bool,
574 tls: &TlsOptions,
575) -> Result<()> {
576 sandbox_exec_with_mode(server, name, command, tty, tls, true).await
577}
578
579pub(crate) async fn sandbox_exec_without_exec(
580 server: &str,

Callers 1

sandbox_createFunction · 0.85

Calls 1

sandbox_exec_with_modeFunction · 0.85

Tested by

no test coverage detected