import { Command } from "commander"; import { describe, expect, it } from "vitest";
function runBrowserStatus(argv: string[]) { const program = new Command();
program.name("test");
program.option("--profile <name>", "Global config profile");
const browser = program
.command("browser")
.option("--browser-profile <name>", "Browser profile name");
let globalProfile: string | undefined;
let browserProfile: string | undefined = "should-be-undefined";
it("does not conflict with global --profile flag", () => { // The global --profile flag is handled by /entry.js before Commander // This test verifies --browser-profile is a separate option const { globalProfile, browserProfile } = runBrowserStatus([ "--profile", "dev", "browser", "--browser-profile", "onasset", "status",
]);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.