Skip to main content

Module progress

Module progress 

Source
Expand description

Minimal internal progress abstraction for Export/Import V2.

This is intentionally small and log/internal oriented. It does not touch stdout and is safe for non-interactive runs. LogProgress backs the import-v2 --progress flag for non-interactive runs by routing events to stderr, while IndicatifProgress renders an interactive bar on a TTY. Both implement ProgressReporter, so call sites stay agnostic.

Structsยง

IndicatifProgress ๐Ÿ”’
A reporter that renders an interactive progress bar via indicatif.
LogProgress ๐Ÿ”’
A lightweight reporter that logs phase lifecycle and progress through the stderr. It never touches stdout, so it is safe for non-interactive runs and keeps dry-run output clean.
NoopProgress ๐Ÿ”’
A reporter that discards every event. Used as the production default and in tests that do not care about progress.
PhaseState ๐Ÿ”’
ProgressPhase ๐Ÿ”’
RAII guard for a started progress phase.

Traitsยง

ProgressReporter ๐Ÿ”’
Receives progress events from long-running Export/Import V2 work.

Functionsยง

write_progress_line ๐Ÿ”’