MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / resolveRuntime

Function resolveRuntime

scripts/container-runtime.js:27–35  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

25}
26
27function resolveRuntime(name) {
28 if (commandExists(name)) {
29 return name;
30 }
31 if (wslCommandExists(name)) {
32 return `wsl ${name}`;
33 }
34 return null;
35}
36
37function detectRuntime() {
38 if (cachedRuntime) {

Callers 1

detectRuntimeFunction · 0.85

Calls 2

commandExistsFunction · 0.85
wslCommandExistsFunction · 0.85

Tested by

no test coverage detected