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
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Configuration management for Talos clients
//!
//! This module provides utilities for managing Talos client configuration,
//! including parsing talosctl config files.
//!
//! # Environment Variables
//!
//! The following environment variables are supported:
//!
//! - `TALOSCONFIG` - Path to the talosconfig file (default: `~/.talos/config`)
//! - `TALOS_CONTEXT` - Override the active context
//! - `TALOS_ENDPOINTS` - Override endpoints (comma-separated)
//! - `TALOS_NODES` - Target specific nodes (comma-separated)
//!
//! # Example
//!
//! ```no_run
//! use talos_api_rs::config::TalosConfig;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Load with environment variable overrides
//! let config = TalosConfig::load_with_env()?;
//!
//! if let Some(ctx) = config.active_context() {
//! println!("Using endpoints: {:?}", ctx.endpoints);
//! }
//! # Ok(())
//! # }
//! ```
pub use ;