dynamic-cli 0.2.0

A framework for building configurable CLI and REPL applications from YAML/JSON configuration files
Documentation
//! 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())
//! }
//! ```

mod display;
mod suggestions;
mod types;

// Public re-exports
pub use display::{display_error, format_error};
pub use suggestions::find_similar_strings;
pub use types::*;

/// Specialized Result type for dynamic-cli
///
/// Uses [`DynamicCliError`] as the default error type.
pub type Result<T> = std::result::Result<T, DynamicCliError>;