Refactored configuration loading function.

This commit is contained in:
2026-03-07 15:18:46 +01:00
parent 67dd2045e3
commit aa6f9e24f8
9 changed files with 63 additions and 71 deletions

View File

@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
import { login } from "../../azure/index.ts";
import { loadPublicConfig } from "../../index.ts";
import { loadConfig } from "../../index.ts";
import type { CommandValues } from "./types.ts";
@@ -17,7 +17,7 @@ Options:
}
export async function runLoginCommand(values: CommandValues): Promise<unknown> {
const config = await loadPublicConfig();
const config = await loadConfig("public-config");
return login({
tenantId: config.tenantId,
clientId: config.clientId,