Show HN: Envelope – A modern environment variable cli tool
The GitHub repository features "envelope," a Rust tool for handling environment variables via SQLite. Commands include add, check, delete, drop, duplicate, export, edit, init, import, list, and help. Simplifies environment configuration management.
Read original articleThe GitHub repository contains information about "envelope," a Rust-based tool for managing environment variables using an SQLite database. It offers commands like add, check, delete, drop, duplicate, export, edit, init, import, list, and help. Users can pretty print, import, list, export, add, delete, drop, and check environment variables. To use envelope, download the binary from the latest release or build it from source with the Rust compiler. This tool simplifies managing and switching between various environment configurations efficiently.
Related
Binrw
The tool binrw simplifies binary parsing and serialization with a declarative approach, offering readability and maintainability. It supports common tasks, generics, custom parsers, predefined types, and is safe for various environments.
Fixing a memory leak of xmlEntityPtr in librsvg
Librsvg fixed a memory leak issue caused by mishandling xmlEntityPtr instances in SVG parsing. A wrapper struct with Rust's Drop trait was used for automatic resource deallocation, improving memory management efficiency.
Avoiding Emacs Bankruptcy
Avoid "Emacs bankruptcy" by choosing efficient packages, deleting unnecessary configurations, and focusing on Emacs's core benefits. Prioritize power-to-weight ratio to prevent slowdowns and maintenance issues. Regularly reassess for a streamlined setup.
Windows File Explorer will be more powerful with version control and 7z
Microsoft updates File Explorer with Git integration for version control, native support for 7-zip and TAR compression formats. Aimed at enhancing project management and file organization for users, announced at Microsoft Build.
A working entropy encoder with output below the Shannon limit
The GitHub repository features Valli encoding, an entropy encoder aiming for compression below the Shannon limit. It includes a C++ implementation, algorithm explanations, code instructions, and project support. Visit the repository for more.
$ envelope add dev db_pwd pwd
There are settings such that a command that starts with a space will not be saved in the history which would help here but I would be very careful about how you use this.Have you looked at mise-en-place at all? It's written in rust too, and might have some cool ideas to use: https://mise.jdx.dev/
Env variables should be a solved problem but no one has made the simplest general solution yet. Seems like you are on track.
One suggestion: no need to use SQLite. Just develop a simple (and _lasting_), plain text DSL and save to a file.
Here's one I made using your example.
https://sdk.scroll.pub/designer/#parsers%0A%20valueCell%0A%2...
I'm happy to chat more to nail that design if that would be helpful.
Very common these days. I don’t get it.
What did you find lacking with the .env.dev approach? (Or if some tool doesn't support .env.dev could always symlink .env → .env.dev)
I feel like this is a giant red flag. Why on earth is your production database accessible from anywhere (ie your PC) without some kind of extra layer of security like a VPN or SSH tunnel?
Is there a way to use envelope in places like those?
Related
Binrw
The tool binrw simplifies binary parsing and serialization with a declarative approach, offering readability and maintainability. It supports common tasks, generics, custom parsers, predefined types, and is safe for various environments.
Fixing a memory leak of xmlEntityPtr in librsvg
Librsvg fixed a memory leak issue caused by mishandling xmlEntityPtr instances in SVG parsing. A wrapper struct with Rust's Drop trait was used for automatic resource deallocation, improving memory management efficiency.
Avoiding Emacs Bankruptcy
Avoid "Emacs bankruptcy" by choosing efficient packages, deleting unnecessary configurations, and focusing on Emacs's core benefits. Prioritize power-to-weight ratio to prevent slowdowns and maintenance issues. Regularly reassess for a streamlined setup.
Windows File Explorer will be more powerful with version control and 7z
Microsoft updates File Explorer with Git integration for version control, native support for 7-zip and TAR compression formats. Aimed at enhancing project management and file organization for users, announced at Microsoft Build.
A working entropy encoder with output below the Shannon limit
The GitHub repository features Valli encoding, an entropy encoder aiming for compression below the Shannon limit. It includes a C++ implementation, algorithm explanations, code instructions, and project support. Visit the repository for more.