46 lines
992 B
Markdown
46 lines
992 B
Markdown
# 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].
|
|
|
|
[full example]: https://git.pleshevski.ru/pleshevskiy/vnetod/src/branch/main/.env.example
|
|
|
|
# Usage
|
|
|
|
Basic usage
|
|
|
|
```sh
|
|
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
|
|
|
|
```sh
|
|
vnetod db:staging debug:off
|
|
```
|
|
|
|
You can switch between states and overwrite from namespaces at the same time.
|
|
|
|
```sh
|
|
vnetod local db:staging debug:off
|
|
```
|
|
|
|
# License
|
|
|
|
GNU General Public License v3.0 or later
|
|
|
|
See [COPYING](./COPYING) to see the full text.
|
|
|
|
[COPYING]: https://git.pleshevski.ru/pleshevskiy/vnetod/src/branch/main/COPYING
|