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

Function open_client

crates/openshell-supervisor-process/src/debug_rpc.rs:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63supervisor's normal token-acquisition path can resolve a JWT.";
64
65async fn open_client() -> Result<OpenShellClient<AuthedChannel>> {
66 let endpoint = std::env::var(openshell_core::sandbox_env::ENDPOINT)
67 .into_diagnostic()
68 .wrap_err("OPENSHELL_ENDPOINT must be set")?;
69 let channel = connect_channel_pub(&endpoint).await?;
70 Ok(OpenShellClient::new(channel))
71}
72
73async fn run_get_sandbox_config(args: &[String]) -> Result<i32> {
74 let sandbox_id = parse_flag(args, "--sandbox-id")

Callers 2

run_get_sandbox_configFunction · 0.85
run_refreshFunction · 0.85

Calls 1

connect_channel_pubFunction · 0.85

Tested by

no test coverage detected