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

Method executable_path

crates/nodeup/src/resolver.rs:39–48  ·  view source on GitHub ↗
(&self, store: &Store, command: &str)

Source from the content-addressed store, hash-verified

37 }
38
39 pub fn executable_path(&self, store: &Store, command: &str) -> PathBuf {
40 match &self.target {
41 ResolvedRuntimeTarget::Version { version } => {
42 store.runtime_executable(version, command)
43 }
44 ResolvedRuntimeTarget::LinkedPath { path, .. } => {
45 runtime_executable_path(path, command)
46 }
47 }
48 }
49
50 pub fn version_if_any(&self) -> Option<&str> {
51 match &self.target {

Callers 3

plan_delegated_commandFunction · 0.80
build_npm_exec_planFunction · 0.80
show_active_runtimeFunction · 0.80

Calls 2

runtime_executable_pathFunction · 0.85
runtime_executableMethod · 0.80

Tested by

no test coverage detected