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

Method exec_request

crates/openshell-supervisor-process/src/ssh.rs:433–446  ·  view source on GitHub ↗
(
        &mut self,
        channel: ChannelId,
        data: &[u8],
        session: &mut Session,
    )

Source from the content-addressed store, hash-verified

431 }
432
433 async fn exec_request(
434 &mut self,
435 channel: ChannelId,
436 data: &[u8],
437 session: &mut Session,
438 ) -> Result<(), Self::Error> {
439 session.channel_success(channel)?;
440 let command = String::from_utf8_lossy(data).trim().to_string();
441 if command.is_empty() {
442 return Ok(());
443 }
444 self.start_shell(channel, session.handle(), Some(command))?;
445 Ok(())
446 }
447
448 async fn subsystem_request(
449 &mut self,

Callers

nothing calls this directly

Calls 3

start_shellMethod · 0.80
handleMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected