kv

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2018 License: MIT Imports: 1 Imported by: 0

README

Persistent env key value store for multiple projects

I created this package to handle environment variables for many projects that I worked at. Since env variables values shouldn't be kept in repo the need for other storage is big. You can store env vars in seperate file that is listed in .gitignore, but experience teaches us, that this approach can fail and sensitive data can end up in the repo.

Usage

  1. To parse existing env file to kv database:

    $ kv parse

  2. To list all stored variables:

    $ kv ls

  3. To export all variables in shell:

    $ export $(kv ls)

  4. To store one variable:

    $ kv set KEY=VAL

or

$ kv set KEY VAL

Implementation

kv database by default is stored in $HOME/.kv/kv.db. As of now single storage implementation is based on bbolt

Suggestions and feature request are welcome :)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL