(&self, store: &Store, command: &str)
| 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 { |
no test coverage detected