-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmod.rs
More file actions
27 lines (25 loc) · 891 Bytes
/
mod.rs
File metadata and controls
27 lines (25 loc) · 891 Bytes
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
//! Exists Command Presentation Module
//!
//! This module implements the CLI presentation layer for the exists command,
//! handling argument processing and user interaction.
//!
//! ## Architecture
//!
//! The exists command presentation layer follows the DDD pattern, providing
//! a read-only existence check without any state modification.
//!
//! ## Components
//!
//! - `errors` - Presentation layer error types with `.help()` methods
//! - `handler` - Main command handler orchestrating the workflow
//!
//! ## Output Contract
//!
//! - Outputs bare `true` or `false` to stdout
//! - Exit code 0 for both true and false results (command succeeded)
//! - Exit code 1 only for errors (repository failures, invalid name)
pub mod errors;
pub mod handler;
pub use handler::ExistsCommandController;
// Re-export commonly used types for convenience
pub use errors::ExistsSubcommandError;