Dotenv section switcher
Go to file
Dmitriy Pleshevskiy 832de949b6
implement Display and Error traits for our error objects
2022-07-31 00:54:38 +03:00
src implement Display and Error traits for our error objects 2022-07-31 00:54:38 +03:00
test_data add namespaces 2022-07-30 17:31:05 +03:00
.env.example implement Display and Error traits for our error objects 2022-07-31 00:54:38 +03:00
.gitignore add namespaces 2022-07-30 17:31:05 +03:00
COPYING . 2022-07-29 16:42:05 +03:00
Cargo.lock add support of switch many states 2022-07-29 18:44:46 +03:00
Cargo.toml add namespaces 2022-07-30 17:31:05 +03:00
README.md implement Display and Error traits for our error objects 2022-07-31 00:54:38 +03:00

README.md

vnetod

Dotenv state switcher

You can create many states in your .env and switch between them.

Rules:

  • State name starts on a new line with ### symbols (Ex. ### local)
  • State ends if line is empty or contains a new state name.

You can see the full example.

Usage

Basic usage

cp .env.example .env
vnetod local        # enable local section
vnetod staging      # enable staging section
vnetod local debug  # enable local and debug sections
vnetod              # disable all sections

You can also use variables from namespaces

vnetod db:staging debug:off

You can switch between states and overwrite from namespaces at the same time.

vnetod local db:staging debug:off

License

GNU General Public License v3.0 or later

See COPYING to see the full text.