stand/
lib.rs

1//! # Stand
2//!
3//! A CLI tool for explicit environment variable management.
4//!
5//! Stand provides a clean, organized way to handle different environments
6//! (dev, staging, prod) with their specific configurations. Unlike tools that
7//! automatically load variables on directory entry, Stand gives you explicit
8//! control over environment switching.
9//!
10//! ## Features
11//!
12//! - **Environment Management**: Define and switch between multiple environments
13//! - **Variable Inheritance**: Use `extends` to inherit from other environments
14//! - **Variable Interpolation**: Reference system environment variables with `${VAR}`
15//! - **Shell Integration**: Start shell sessions with environment loaded
16//! - **Command Execution**: Execute commands with specific environment variables
17//!
18//! ## Installation
19//!
20//! ```bash
21//! cargo install stand
22//! ```
23//!
24//! ## Quick Start
25//!
26//! ```bash
27//! # Initialize a new project
28//! stand init
29//!
30//! # List available environments
31//! stand list
32//!
33//! # Start a shell with an environment
34//! stand shell dev
35//!
36//! # Execute a command with an environment
37//! stand exec prod -- npm start
38//! ```
39//!
40//! For more information, see the [GitHub repository](https://github.com/ueneid/stand).
41
42pub mod cli;
43pub mod commands;
44pub mod config;
45pub mod environment;
46pub mod error;
47pub mod process;
48pub mod shell;
49pub mod state;
50pub mod utils;