Skip to content

orend/lein-var-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lein-var-file

A Leiningen plugin to create an environment variables file. Works great with environ.

Usage

Put [lein-var-file "0.3.1"] into the :plugins vector of your project.clj.

Run this

$ lein var-file

and a file called .env-vars will get generated, containing all current key-value pairs in the :env key in the current profile in the following format:

ENV_VAR1=1
ENV_VAR2=2

This plugin integrates well with environ, which puts all environemnt variables, the settings in project.clj and profiles.clj in the :env key of the current profile. Environ generates a .lein-env file that contains a clojure map where this plugin creates a file with the same key-value pairs but in a different format that's more convenient for working with, say, Docker containers.

License

Copyright © 2015 Oren Dobzinski

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A leiningen plugin to create an environment variables file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published