MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / command_text

Function command_text

crates/opencode-cli/src/main.rs:2464–2470  ·  view source on GitHub ↗
(program: &str, args: &[&str])

Source from the content-addressed store, hash-verified

2462}
2463
2464fn command_text(program: &str, args: &[&str]) -> Option<String> {
2465 let output = ProcessCommand::new(program).args(args).output().ok()?;
2466 if !output.status.success() {
2467 return None;
2468 }
2469 Some(String::from_utf8_lossy(&output.stdout).to_string())
2470}
2471
2472fn detect_install_method() -> InstallMethod {
2473 let exec_path = std::env::current_exe()

Callers 1

detect_install_methodFunction · 0.85

Calls 3

newFunction · 0.85
outputMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected