refactor: remove unused usage functions and migrate argument parsing to commander.js

This commit is contained in:
2026-03-10 19:48:02 +01:00
parent 9fd770999b
commit 5265e5300c
9 changed files with 12 additions and 119 deletions

View File

@@ -11,17 +11,6 @@ type LoginOptions = {
browserProfile?: string;
};
export function usageLogin(): string {
return `Usage: sk-az-tools login [--resources <csv>] [--use-device-code] [--no-browser] [--browser <name>] [--browser-profile <profile>] [global options]
Options:
--resources <csv> Comma-separated resources: graph,devops,arm (default: all)
--use-device-code Use device code flow instead of interactive flow
--no-browser Do not launch browser; print interactive URL to stderr
--browser <name> Browser keyword: brave|browser|browserPrivate|chrome|edge|firefox
--browser-profile <name> Chromium profile name (e.g. Default, "Profile 1")`;
}
export async function runLoginCommand(options: LoginOptions): Promise<unknown> {
const config = await loadAuthConfig("public-config");
return login(