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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! # ggen-utils - Shared utilities for ggen project
//!
//! This crate provides common utilities used across the ggen codebase, including:
//! - Error handling types and utilities
//! - Application configuration management
//! - Logging infrastructure
//! - Alert system for critical notifications
//! - Project configuration types
//! - Time utilities
//! - Type definitions and helpers
//! - User level management
//!
//! ## Examples
//!
//! ### Error Handling
//!
//! ```rust,no_run
//! use crate::utils::error::Result;
//! use crate::utils::error::Error;
//!
//! fn process_data() -> Result<()> {
//! // Operations that may fail
//! Ok(())
//! }
//!
//! # fn main() -> Result<()> {
//! process_data()?;
//! # Ok(())
//! # }
//! ```
//!
//! ### Configuration
//!
//! ```rust,no_run
//! use crate::utils::app_config::AppConfig;
//!
//! let config = AppConfig::load()?;
//! println!("Config loaded: {:?}", config);
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```
// backtrace is stable since 1.65.0, no feature flag needed
// Poka-Yoke: Prevent warnings at compile time - compiler enforces correctness
// Temporarily disabled due to compilation errors in untracked files (Week 8/9 security work)
// Re-enable after fixing compilation issues
// pub mod secrets;
// pub mod supply_chain;
// Re-export error handling utilities
// Note: bail! and ensure! macros are exported via #[macro_export] in error.rs
// They are available as crate::bail! and crate::utils::ensure!
pub use ;
// Re-export SafePath for easy migration from PathBuf
// Note: For enterprise-grade validation with workspace bounds, use path_validator::PathValidator
pub use SafePath;
// Re-export SafeCommand for command injection prevention
pub use ;