progressWithTUI function
Create a progress indicator for long-running operations
Returns a Progress object that can be updated with status messages. Falls back to simple text output if TUI is disabled.
Implementation
Progress? progressWithTUI(String message) {
if (!_tuiEnabled || !_isTTY()) {
stdout.writeln(message);
return null;
}
return tuiLogger.progress(message);
}