This is the modest-config Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Tue Jul 15 06:01:19 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
modest-configA modest config file loader library
Torbjørn Marø <torbjorn.maro@gmail.com>
MIT
package.lisp (file).
modest-config.lisp (file).
Files are sorted by type and then listed depth-first from the systems components trees.
modest-config/modest-config.lisppackage.lisp (file).
modest-config (system).
find-config (function).
load-config (function).
with-config (macro).
assert-config-exist (function).
assert-one-exist (function).
find-by-conventions (function).
find-by-symbol (function).
zip-bindings (function).
Packages are listed by definition order.
modest-configmodest
common-lisp.
find-config (function).
load-config (function).
with-config (macro).
assert-config-exist (function).
assert-one-exist (function).
find-by-conventions (function).
find-by-symbol (function).
zip-bindings (function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Example where there exists a file foobar.config that contains a plist
with properties HOST and PORT:
(with-config :foobar (host port)
(format t "Host is ~a~%" host)
(format t "Port is ~a~%" port))
Identifier may be nil to load file based on modest conventions:
(with-config nil (host port)
(format t "Host is ~a~%" host)
(format t "Port is ~a~%" port))
Finds the config filename based on identifier and some conventions. Identifier may be nil, a symbol, or a filename (with or without path). If config file can’t be found a condition is raised.
Simply reads the first element from config file,
assumed to be a property list, and returns it.
If identifier already is a list, it’s assumed to be the config and
modestly returned.
Will probe for a file in this order:
- current-package-name.config
- modest.config
- ~/current-package-name.config
Will probe for a file in this order (given symbol ’foo or :foo):
- FOO.config
- ~/FOO.config
| Jump to: | A F L M W Z |
|---|
| Jump to: | A F L M W Z |
|---|
| Jump to: | F M P S |
|---|
| Jump to: | F M P S |
|---|