Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-env Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 03:37:06 2022 GMT+0.
Next: Systems, Previous: The cl-env Reference Manual, Up: The cl-env Reference Manual [Contents][Index]
cl-env is a project for loading environment variables from .env files into the current environment. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.
Calling (cl-env:init)
will attempt to load the .env file in the current working directory into your environment (accessible with (uiop:getenv)
). If there is no file nothing will be loaded into your environment.
(cl-env:init) ;; load .env for the same directory as current directory.
or
(cl-env:init #p"~/Projects/your-cool-project/.env") ;; load .env from a specific directory.
or
(cl-env:init (merge-pathnames (truename ".") ".env")) ;; load .dev.env from current directory.
Clone this repo
Run make test
Next: Files, Previous: Introduction, Up: The cl-env Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Easily parse .env files. That’s it!
Evan M Jones (https://evanjon.es/) <me@evanjon.es>
MIT
Next: Packages, Previous: Systems, Up: The cl-env Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: cl-env/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
cl-env (system).
Next: cl-env/cl-env.lisp, Previous: cl-env/cl-env.asd, Up: Lisp [Contents][Index]
cl-env (system).
Previous: cl-env/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
cl-env (system).
split (function).
Next: Definitions, Previous: Files, Up: The cl-env Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: Indexes, Previous: Packages, Up: The cl-env Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Previous: Public Interface, Up: Public Interface [Contents][Index]
Small wrapper around (uiop:getenv). :default always you to specify a default variable. If the current environment does not have a value.
Reads the environment file, splits it up, and injects into current environment.
Previous: Definitions, Up: The cl-env Reference Manual [Contents][Index]
Jump to: | F G I S |
---|
Jump to: | F G I S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|