refactor: reorganize source and tests

This commit is contained in:
objz committed 2026-07-27 11:28:57 +02:00
1 parent 15d76c18a0
commit c6205a337c
139 files changed
+5532 -5548

No files matched your search

+5 -15
View File
@@ -1,29 +1,19 @@
// tui entrypoint: sets up the terminal, runs the app, cleans up on exit.
pub mod app;
pub mod error_buffer;
mod event;
mod input;
pub mod logging;
pub mod progress;
mod render;
pub mod widgets;
pub use crate::feedback::errors as error_buffer;
pub use crate::feedback::progress;
pub use crate::feedback::request_redraw;
#[cfg(test)]
pub(crate) mod tests;
use std::sync::atomic::{AtomicBool, Ordering};
static REDRAW_REQUESTED: AtomicBool = AtomicBool::new(true);
pub fn request_redraw() {
REDRAW_REQUESTED.store(true, Ordering::Release);
}
pub(super) fn take_redraw_request() -> bool {
REDRAW_REQUESTED.swap(false, Ordering::AcqRel)
}
pub type Tui = ratatui::DefaultTerminal;
pub async fn show() -> color_eyre::Result<()> {
@@ -234,7 +224,7 @@ async fn rebuild_runtime_cache_screen(
});
while !task.is_finished() {
let progress = crate::tui::progress::PROGRESS
let progress = crate::feedback::progress::PROGRESS
.lock()
.ok()
.map(|progress| progress.clone())