MCPcopy Create free account
hub / github.com/delinoio/oss / runtime_executable_path

Function runtime_executable_path

crates/nodeup/src/store.rs:150–160  ·  view source on GitHub ↗
(runtime_root: &Path, command: &str)

Source from the content-addressed store, hash-verified

148}
149
150pub fn runtime_executable_path(runtime_root: &Path, command: &str) -> PathBuf {
151 let bin_dir = runtime_root.join("bin");
152 for candidate in runtime_executable_candidates(command) {
153 let candidate_path = bin_dir.join(&candidate);
154 if candidate_path.exists() {
155 return candidate_path;
156 }
157 }
158
159 bin_dir.join(runtime_primary_executable_name(command))
160}
161
162pub fn runtime_executable_candidate_paths(runtime_root: &Path, command: &str) -> Vec<PathBuf> {
163 let bin_dir = runtime_root.join("bin");

Callers 2

runtime_executableMethod · 0.85
executable_pathMethod · 0.85

Tested by

no test coverage detected