BARGS
    Preparing search index...

    Interface Command<TValues, TPositionals>

    Command with handler attached (terminal in the pipeline).

    interface Command<
        TValues = Record<string, unknown>,
        TPositionals extends readonly unknown[] = readonly unknown[],
    > {
        __brand: "Command";
        __optionsSchema: OptionsSchema;
        __positionalsSchema: PositionalsSchema;
        description?: string;
        handler: HandlerFn<TValues, TPositionals>;
    }

    Type Parameters

    • TValues = Record<string, unknown>
    • TPositionals extends readonly unknown[] = readonly unknown[]
    Index

    Properties

    __brand: "Command"

    Brand for type discrimination. Do not use directly.

    __optionsSchema: OptionsSchema

    Options schema. Do not use directly.

    __positionalsSchema: PositionalsSchema

    Positionals schema. Do not use directly.

    description?: string

    Command description for help text

    The handler function