Crates.io | vnetod |
lib.rs | vnetod |
version | 0.4.0 |
source | src |
created_at | 2022-07-29 13:43:21.568475 |
updated_at | 2022-11-12 14:07:26.381535 |
description | Are you still switching sections in your dotenv file manually? Try this dotenv section switcher |
homepage | https://github.com/pleshevskiy/vnetod/discussions |
repository | https://git.pleshevski.ru/pleshevskiy/vnetod.git |
max_upload_size | |
id | 634998 |
size | 75,098 |
* inverted word "dotenv"
Are you still switching sections in your dotenv file manually? Try this dotenv section switcher!
You can create many sections in your .env
and switch between them.
Rules:
###
symbols (Ex. ### local
)### local,staging
)### debug:on,dev:on
). If a
section doesn't contain a namespace, it's a global namespace.You can see the full example.
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
This tool uses .env
from your current location, but you can change this
behavior with the -f
(--file
) flag.
cp .env.example .env.properties
vnetod -f .env.properties local
And you can also change the output file with the -o
(--output
) flag, if you
don't want to overwrite the input file.
vnetod -f .env.example -o .env local
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
For more information, see the help.
vnetod --help
cargo install vnetod
docker run --rm -it -v $PWD:/data pleshevskiy/vnetod --help
nix run git+https://git.pleshevski.ru/pleshevskiy/vnetod -- --help
GNU General Public License v3.0 or later
See COPYING to see the full text.