8cee54007f03184c8c334f29e1eeb4ecdae2b93f
cenv-rs
cenv-rs is a Rust-based Terminal User Interface (TUI) tool designed to help developers interactively generate .env files from .env.example templates. With a focus on speed and usability, it features Vim-like keybindings and out-of-the-box support for theming, defaulting to the Catppuccin Mocha palette.
Features
- Parse
.env.examplefiles to extract keys, default values, and comments. - Vim-like keybindings for quick navigation and editing.
- Built-in theming support with Catppuccin Mocha as the default.
- Configurable through a standard TOML file.
Installation
Ensure you have Rust and Cargo installed, then run:
cargo install --path .
Alternatively, you can build from source:
git clone <repository_url>
cd cenv-rs
cargo build --release
Usage
Navigate to a directory containing a .env.example file and run:
cenv-rs
Keybindings
-
Normal Mode
j/Down: Move selection downk/Up: Move selection upi: Edit the value of the currently selected key (Enter Insert Mode):worEnter: Save the current configuration to.envqor:q: Quit the application without savingEsc: Clear current prompt or return from actions
-
Insert Mode
- Type your value for the selected key.
Esc: Return to Normal Mode
Configuration
cenv-rs can be configured using a config.toml file located in your user configuration directory (e.g., ~/.config/cenv-rs/config.toml on Linux/macOS).
Example configuration:
[theme]
# Default theme is "catppuccin_mocha"
name = "catppuccin_mocha"
License
This project is licensed under the MIT License. See the LICENSE file for details.
Releases
9
Release v0.5.1
Latest
Languages
Rust
97.6%
Lua
2.4%