-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmod.rs
More file actions
38 lines (35 loc) · 1.28 KB
/
mod.rs
File metadata and controls
38 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! CLI Delivery Mechanism
//!
//! This module contains the CLI-specific presentation code that implements the
//! command-line interface for the deployer. It follows a four-layer MVC architecture:
//!
//! ```text
//! Input → Dispatch → Controllers → Views
//! ```
//!
//! | Layer | Purpose |
//! |-----------------|------------------------------------------------|
//! | **Input** | CLI argument parsing and validation (Clap) |
//! | **Dispatch** | Command routing and execution context |
//! | **Controllers** | Command handling and business logic coordination |
//! | **Views** | Output formatting and presentation |
pub mod controllers;
pub mod dispatch;
pub mod error;
pub mod errors;
pub mod input;
pub mod views;
// Re-export commonly used CLI types for convenience
pub use controllers::create::{
CreateCommandError, CreateEnvironmentCommandError, CreateEnvironmentTemplateCommandError,
};
pub use controllers::destroy::DestroySubcommandError;
pub use error::handle_error;
pub use errors::CommandError;
pub use input::{Cli, Commands, GlobalArgs};
pub use views::progress::ProgressReporter;
pub use views::{Theme, UserOutput, VerbosityLevel};
#[cfg(test)]
mod tests {
mod reentrancy_fix_test;
}