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

Function availability_mode

crates/nodeup/src/command_diagnostics.rs:262–273  ·  view source on GitHub ↗
(
    direct_executable_runnable: bool,
    npm_exec_fallback: &Option<PathBuf>,
)

Source from the content-addressed store, hash-verified

260}
261
262fn availability_mode(
263 direct_executable_runnable: bool,
264 npm_exec_fallback: &Option<PathBuf>,
265) -> &'static str {
266 if direct_executable_runnable {
267 "direct"
268 } else if npm_exec_fallback.is_some() {
269 "npm-exec"
270 } else {
271 "unavailable"
272 }
273}

Callers 2

for_resolved_runtimeMethod · 0.85
for_linked_runtimeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected