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

Function loginHint

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

Source from the content-addressed store, hash-verified

94}
95
96function loginHint() {
97 const runtime = getRuntime();
98 if (runtime.endsWith('podman')) {
99 const registry = dockerHubRegistry();
100 if (process.platform === 'win32') {
101 return `${runtime} login ${registry} -u <username> -p <access-token>`;
102 }
103 return `${runtime} login ${registry} -u <username> --password-stdin`;
104 }
105 return `${runtime} login -u <username>`;
106}
107
108function isPodmanOnWindows() {
109 return process.platform === 'win32' && getRuntime().endsWith('podman');

Callers

nothing calls this directly

Calls 2

getRuntimeFunction · 0.85
dockerHubRegistryFunction · 0.85

Tested by

no test coverage detected