envcheck/lib.rs
1//! envcheck - A fast, modern CLI for linting .env files and detecting K8s ↔ env mismatches.
2//!
3//! # Features
4//!
5//! - **Lint** `.env` files for syntax errors, duplicate keys, and common issues
6//! - **Compare** environment files across environments (local, staging, prod)
7//! - **K8s Sync** detection between Kubernetes manifests and .env files
8//!
9//! # Example
10//!
11//! ```rust,ignore
12//! use envcheck::{EnvFile, lint};
13//!
14//! let env_file = EnvFile::parse("DATABASE_URL=postgres://localhost/db")?;
15//! let diagnostics = lint(&env_file);
16//! ```
17
18#![doc(html_root_url = "https://docs.rs/envcheck/0.1.0")]
19
20pub mod commands;
21pub mod config;
22pub mod error;
23pub mod output;
24pub mod parser;
25pub mod rules;
26
27// Re-export main types for convenience
28pub use error::{EnvCheckError, Result};
29pub use output::{Format, OutputFormatter};
30pub use parser::{EnvFile, EnvVar, K8sEnvRef, K8sManifest};
31pub use rules::{Diagnostic, Rule, RuleId, Severity};