mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Previously --format json/sarif completely suppressed spinner and progress bar, making the CLI appear frozen during long scans. Now spinner/progress output is redirected to stderr via ProgressWriter, so progress indicators remain visible while structured data stays clean on stdout. This follows the Unix convention: data → stdout, diagnostics → stderr. Also: - Extract fileTTY() shared helper (DRY IsTTY + isProgressTTY) - Add format constants (formatText/JSON/SARIF) and isStructured() - Capture/restore previous ProgressWriter in defer (defensive)