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
//! # VX Configuration Management
//!
//! This crate provides comprehensive configuration management for the vx tool manager.
//! It supports layered configuration from multiple sources and automatic project detection.
//!
//! ## Features
//!
//! - **Layered Configuration**: Supports builtin defaults, user config, project config, and environment variables
//! - **Project Detection**: Automatically detects Python, Rust, Node.js, and Go projects
//! - **Multiple Formats**: Supports TOML, JSON, and other configuration formats
//! - **Tool Version Management**: Manages tool versions across different project types
//!
//! ## Example
//!
//! ```rust
//! use vx_config::ConfigManager;
//!
//! # async fn example() -> anyhow::Result<()> {
//! let config_manager = ConfigManager::new().await?;
//! let tool_version = config_manager.get_tool_version("node");
//! # Ok(())
//! # }
//! ```
// Re-export main types and functions
pub use *;
pub use ;
pub use ConfigManager;
pub use *;
/// Current version of the vx-config crate
pub const VERSION: &str = env!;