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

Function command_matches_ssh_forward

crates/openshell-core/src/forward.rs:231–234  ·  view source on GitHub ↗
(command: &str, port: u16, sandbox_id: Option<&str>)

Source from the content-addressed store, hash-verified

229/// Test-only wrapper for flat command lines.
230#[cfg(test)]
231fn command_matches_ssh_forward(command: &str, port: u16, sandbox_id: Option<&str>) -> bool {
232 let args = command.split_whitespace().collect::<Vec<_>>();
233 args_match_ssh_forward(&args, port, sandbox_id)
234}
235
236fn find_proxy_command_match(args: &[&str], sandbox_id: Option<&str>) -> Option<ProxyCommandMatch> {
237 for (index, arg) in args.iter().enumerate().skip(1) {

Callers

nothing calls this directly

Calls 1

args_match_ssh_forwardFunction · 0.85

Tested by

no test coverage detected