doc [skip ci]

This commit is contained in:
Michiel Borkent 2021-06-01 11:58:53 +02:00
parent 6bd17bad98
commit 952af31296

View file

@ -39,6 +39,7 @@ The following libraries and projects are known to work with babashka.
- [binf](#binf)
- [rewrite-edn](#rewrite-edn)
- [expound](#expound)
- [omniconf](#omniconf)
- [Pods](#pods)
- [Projects](#projects-1)
- [babashka-test-action](#babashka-test-action)
@ -545,6 +546,30 @@ Example:
(expound/expound ::a [1 2])
```
### [omniconf](https://github.com/grammarly/omniconf)
script.clj:
``` clojure
#!/usr/bin/env bb
(ns script
(:require [babashka.deps :as deps]))
(deps/add-deps
'{:deps {com.grammarly/omniconf {:mvn/version "0.4.3"}}})
(require '[omniconf.core :as cfg])
(cfg/define {:foo {}})
(cfg/populate-from-env)
(cfg/get :foo)
```
``` text
FOO=1 script.clj
Populating Omniconf from env: 1 value(s)
"1"
```
## Pods
[Babashka pods](https://github.com/babashka/babashka.pods) are programs that can