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

Function getRuntime

scripts/container-runtime.js:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70function getRuntime() {
71 const runtime = detectRuntime();
72 if (!runtime) {
73 console.error('Error: No container runtime found. Install Docker or Podman, or set CONTAINER_RUNTIME=docker|podman.');
74 process.exit(1);
75 }
76 return runtime;
77}
78
79function getRuntimeLabel() {
80 const runtime = getRuntime();

Callers 5

getRuntimeLabelFunction · 0.85
runFunction · 0.85
runQuietFunction · 0.85
loginHintFunction · 0.85
isPodmanOnWindowsFunction · 0.85

Calls 1

detectRuntimeFunction · 0.85

Tested by

no test coverage detected