Skip to main content

autom8/commands/
monitor.rs

1//! Monitor command handler.
2//!
3//! Launches a TUI dashboard to display real-time status of autom8
4//! activity across all projects.
5
6use crate::error::Result;
7use crate::ui::tui::app::run_monitor;
8
9/// Launch the monitor TUI dashboard.
10///
11/// Displays real-time status of autom8 activity across all projects
12/// in a terminal user interface. Refresh interval is hardcoded to 100ms
13/// for responsive UI updates.
14///
15/// # Returns
16///
17/// * `Ok(())` when the user exits the TUI
18/// * `Err(Autom8Error)` if the TUI fails to initialize
19pub fn monitor_command() -> Result<()> {
20    run_monitor()
21}