doc [skip ci]
This commit is contained in:
parent
6bd17bad98
commit
952af31296
1 changed files with 25 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue