test.govlab/argv/core/converters/invocation.fixture.ts

test.govlab/argv/core/converters/invocation.fixture.ts is a file in Codebase Testing. 12 lines of code and 2 definitions.

import type { ArgvSpec } from "@govlab/argv";

export const SPEC: ArgvSpec = {
    command: "npm run thing --",
    flags: [
        { describe: "a value", name: "--name", takesValue: true },
        { describe: "a switch", name: "--loud", takesValue: false },
        { describe: "many", name: "--tag", repeatable: true, takesValue: true },
    ],
    positionals: [{ describe: "the input", name: "input" }],
    summary: "Does a thing.",
};

export const FULL_WORDS: readonly string[] = ["in", "--name", "x", "--loud", "--tag", "a", "--tag", "b"];