otelite_tui/lib.rs
1//! Otelite TUI Library
2//!
3//! This library provides the core functionality for the Otelite Terminal User Interface,
4//! including state management, API client, and UI components.
5
6// TUI is under development - many components not yet integrated
7#![allow(dead_code)]
8#![allow(unused_imports)]
9#![allow(unused_variables)]
10#![allow(clippy::unnecessary_map_or)]
11
12pub mod api;
13pub mod app;
14pub mod config;
15pub mod events;
16pub mod state;
17pub mod ui;
18
19// Re-export commonly used types
20pub use app::{run, App, View};
21pub use config::Config;
22pub use events::{poll_event, AppEvent};
23
24/// Run the TUI application with the given configuration.
25pub async fn run_tui(config: Config) -> anyhow::Result<()> {
26 run(config).await
27}