Move credentialToStr and add tests

This commit is contained in:
Michael B. Gale
2026-01-29 10:07:51 +00:00
parent b2ff80ddac
commit 2a384c1c14
4 changed files with 32 additions and 9 deletions
+1 -6
View File
@@ -12,6 +12,7 @@ import { KnownLanguage } from "./languages";
import { getActionsLogger, Logger } from "./logging";
import {
Credential,
credentialToStr,
getCredentials,
getDownloadUrl,
parseLanguage,
@@ -309,10 +310,4 @@ async function getProxyBinaryPath(logger: Logger): Promise<string> {
return proxyBin;
}
function credentialToStr(c: Credential): string {
return `Type: ${c.type}; Host: ${c.host}; Url: ${c.url} Username: ${
c.username
}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`;
}
void runWrapper();