GithubHelp home page GithubHelp logo

envars's Introduction

envars

this is a simple cli tool that stores your project's environement variables in encrypted KeePass database. THIS TOOL IS FOR DEVELOPMENT ONLY - DO NOT USE IT IN PRODUCTION!

how to build the code?

  • install go on your machine
  • run git clone https://github.com/snirt/envars.git
  • cd envars
  • go build -ldflags "-s -w" -o "./bin/envars" .
  • now you can copy the file that created in the bin folder to /usr/local/bin/ or create a soft link.

how to use it?

envars -h will list the tool's commands

example

  • open your project's directory in terminal
  • run envars or envars add
  • now you should choose your database password
  • to be able to access the database you should export your master password to the session: export ENVARS_PWD=YOUR_PASSWORD
  • now you can list your environment variables: envars ls
  • eval $(envars list --export) command will export all your variables to the current session.
  • create an alias by adding this line to your shell configuration: alias export_vars='eval $(envars list -e)'

how to use it in VSCode?

  • open your launch.json file
  • add to your json object in configurations this: "console": "integratedTerminal",
  • open the integrated terminal and export your project's master password as described above: export ENVARS_PWD=YOUR_PASSWORD
  • run export_vars
  • now you can run your code and your environment variables are safe. they will e available until you'll close the terminal session.

envars's People

Contributors

snirt avatar

Watchers

 avatar

envars's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.