Module Reference
This section provides a reference for each module in the spark-tui codebase.
Modules
| Module | Path | Description |
|---|---|---|
| Config | src/config/ | CLI argument parsing, config resolution, ~/.databrickscfg support |
| Fetch | src/fetch/ | HTTP client, Spark API types, endpoint methods, background poller |
| Analyze | src/analyze/ | Suspect detection (slow stages, skew, spill), bottleneck classification, SQL linking |
| TUI | src/tui/ | App state machine, tab rendering, widgets, theme |
| Utilities | src/util/ | Formatting (duration, bytes) and time parsing helpers |