env-select

license crates.io version

Easily switch between predefined values for arbitrary environment variables.

Usage

Create env-select file

First, define .env-select.toml. This is where you'll specify possible options for each variable. Here's an example:

toml [variables] TEST_VARIABLE = ["abc", "def"]

Now, you can easily switch between the defined values (or specify an adhoc value) with es:

```sh

es TESTVARIABLE | source ? TESTVARIABLE= › ❯ abc def Custom ✔ TESTVARIABLE= · abc echo $TESTVARIABLE abc ```