feat: add async runtime with tokio and tracing

This commit is contained in:
objz committed 2025-07-05 14:18:42 +02:00
1 parent cb3453f0d0
commit a8f409d2ff
5 files changed
+1603 -39

No files matched your search

+5 -2
View File
@@ -1,5 +1,8 @@
pub mod layout;
pub mod log_buffer;
pub mod logging;
pub mod error_buffer;
pub mod progress;
pub mod theme;
pub mod widgets;
@@ -11,9 +14,9 @@ use crossterm::{
};
use ratatui::{prelude::CrosstermBackend, Terminal};
pub fn show() -> color_eyre::Result<()> {
pub async fn show() -> color_eyre::Result<()> {
let mut terminal = init_ratatui()?;
let result = layout::App::default().run(&mut terminal);
let result = layout::App::default().run(&mut terminal).await;
if let Err(err) = restore_ratatui() {
eprintln!(
"failed to restore terminal. Run 'reset' or restart your terminal to recover: {}",