An open API service indexing awesome lists of open source software.

https://github.com/oslavdev/env-manager

A simple env manager utility written on rust. WIP
https://github.com/oslavdev/env-manager

Last synced: 10 months ago
JSON representation

A simple env manager utility written on rust. WIP

Awesome Lists containing this project

README

          

# ENV MANAGER 🚧 WIP

This is a simple env manager written on Rust.

It allows you switch between several `.env` files.

# How To

## Install

...

## Switch

Switch option allows you to switch between several env files. The utility takes the chosen env and copies in the root of your application as `.env`

1. Create folder ```env```.
2. Place env files inside the folder following the next name convention: ```.{name}.env``` For example: ```.superbrand.env``` and ```.anothersuperbrand.env```.
3. Run ```cargo run``` within your app root directory
4. Follow the prompt within your terminal

### Terminal preview:

![Terminal](readme/terminal.png?raw=true "Terminal")

### Folder example:

![Folder](readme/folder.png?raw=true "Folder")

## Shortcuts:

**Options**

- ```-- switch``` - starts switching process
- ```-- test``` - starts testing process

WIP.
Switch also contains a second argument, where you can specify known name of env you want to use. For example: ```cargo run -- switch -- superbrand```

## Test

WIP