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

Function proxy_command_option_present

crates/openshell-core/src/forward.rs:287–291  ·  view source on GitHub ↗
(args: &[&str], proxy_index: usize)

Source from the content-addressed store, hash-verified

285}
286
287fn proxy_command_option_present(args: &[&str], proxy_index: usize) -> bool {
288 args.iter()
289 .take(proxy_index + 1)
290 .any(|arg| arg.starts_with("ProxyCommand="))
291}
292
293fn proxy_option_takes_value(arg: &str) -> bool {
294 matches!(arg, "--gateway" | "--token" | "--gateway-name")

Callers 1

find_proxy_command_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected