Skip to main content

wrkflw_ui/
lib.rs

1// Modular UI crate for wrkflw
2//
3// This crate is organized into several modules:
4// - app: Contains the main App state and TUI entry point
5// - models: Contains the data structures for the UI
6// - components: Contains reusable UI elements
7// - handlers: Contains workflow handling logic
8// - utils: Contains utility functions
9// - views: Contains UI rendering code
10
11// Always-available modules (CLI validation/execution)
12pub mod cli_style;
13pub mod handlers;
14
15// TUI-specific modules (require ratatui/crossterm)
16#[cfg(feature = "tui")]
17pub mod app;
18#[cfg(feature = "tui")]
19pub mod components;
20#[cfg(feature = "tui")]
21pub mod log_processor;
22#[cfg(feature = "tui")]
23pub mod models;
24#[cfg(feature = "tui")]
25pub mod theme;
26#[cfg(feature = "tui")]
27pub mod utils;
28#[cfg(feature = "tui")]
29pub mod views;
30
31// Re-export main entry points
32#[cfg(feature = "tui")]
33pub use app::run_wrkflw_tui;
34pub use handlers::workflow::execute_workflow_cli;
35pub use handlers::workflow::validate_workflow;