vlocode-project - v2.4.3
    Preparing search index...

    Interface ProgressBarOptions

    interface ProgressBarOptions {
        barWidth?: number;
        details?: string[] | (() => string[]);
        label?: string;
        message?: string;
        refreshIntervalMs?: number;
        stream?: WriteStream;
        total?: number;
        tracker?: ProgressTracker;
        value?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    barWidth?: number

    Width of the gauge in characters. Defaults to 24.

    details?: string[] | (() => string[])

    Extra summary lines rendered, indented, beneath the gauge. The whole block is redrawn in place, so these can be updated freely. Each line is truncated to one terminal row. Pass a function to have it re-evaluated on every redraw (e.g. to surface a continuously-changing counter).

    label?: string

    Short label rendered in front of the gauge, e.g. the name of the running operation.

    message?: string

    Free-form trailing text on the gauge line (e.g. the item currently being processed). Truncated to fit the terminal width.

    refreshIntervalMs?: number

    Interval in milliseconds at which the spinner and elapsed/ETA are refreshed even when no progress updates arrive. Defaults to 120ms.

    stream?: WriteStream

    Stream to render to; defaults to process.stdout. The stream is expected to be a TTY — the caller is responsible for deciding whether interactive rendering is appropriate (see ProgressBar.isInteractive).

    total?: number

    Total number of units of work. May grow over time when the total is not known up-front; the underlying ProgressTracker treats the total as a moving target and clamps the ratio.

    tracker?: ProgressTracker

    Tracker to render. When omitted a standalone tracker is created from the seed state. Pass an existing tracker to share one model between the bar and another consumer.

    value?: number

    Number of completed units of work.