Skip to main content

envx_secure/
lib.rs

1//! # envx
2//!
3//! A CLI tool for `.env` file management: semantic diff, schema audit, and
4//! passphrase-based encryption.
5//!
6//! ## Subcommands
7//!
8//! | Command | Description |
9//! |---------|-------------|
10//! | [`commands::diff`] | Semantic diff between two `.env` files |
11//! | [`commands::audit`] | Validate a `.env` file against a schema |
12//! | [`commands::encrypt`] | Encrypt / decrypt `.env` files with [age] |
13//!
14//! ## Quick start
15//!
16//! ```bash
17//! # Compare two env files
18//! envx diff .env.example .env
19//!
20//! # Audit env file against a schema (one key per line)
21//! envx audit --schema schema.env .env
22//!
23//! # Encrypt
24//! envx encrypt .env          # writes .env.age
25//! envx decrypt .env.age      # restores .env
26//! ```
27//!
28//! ## Exit codes
29//!
30//! - `0` — success / no differences
31//! - `1` — differences found, missing/empty required keys, or any error
32//!
33//! [age]: https://age-encryption.org
34
35pub mod cli;
36pub mod commands;
37pub mod crypto;
38pub mod parser;