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
39
40
//! Error handling for dynamic-cli
//!
//! This module provides a hierarchical error system with clear and
//! contextual messages to facilitate debugging.
//!
//! ## Error Types
//!
//! - [`DynamicCliError`] : Main error encompassing all categories
//! - [`ConfigError`] : Configuration errors
//! - [`ParseError`] : Parsing errors
//! - [`ValidationError`] : Validation errors
//! - [`ExecutionError`] : Execution errors
//! - [`RegistryError`] : Registry errors
//!
//! ## Example
//!
//! ```
//! use dynamic_cli::error::{DynamicCliError, ConfigError};
//!
//! fn load_config() -> Result<(), DynamicCliError> {
//! Err(ConfigError::FileNotFound {
//! path: "config.yaml".into(),
//! suggestion: None,
//! }.into())
//! }
//! ```
// Public re-exports
pub use ;
pub use find_similar_strings;
pub use *;
/// Specialized Result type for dynamic-cli
///
/// Uses [`DynamicCliError`] as the default error type.
pub type Result<T> = Result;