Common utilities for output and option sharing.
Common utilities for output and option sharing.
Bind this to prevent tasks from exiting the system process.
Bind this to prevent tasks from exiting the system process.
(colorize s color)
Wrap the string in ANSI escape sequences to render the named color.
Wrap the string in ANSI escape sequences to render the named color.
(duration-str elapsed)
Format a duration in milliseconds for human consumption.
Format a duration in milliseconds for human consumption.
(exit! code)
Exit a task with a status code.
Exit a task with a status code.
(load-configs label file)
Load parent configuration files. Returns a merged configuration map.
Load parent configuration files. Returns a merged configuration map.
(log & messages)
Log a message which will only be printed when verbose output is enabled.
Log a message which will only be printed when verbose output is enabled.
(logf message & fmt-args)
Log a formatted message which will only be printed when verbose output is enabled.
Log a formatted message which will only be printed when verbose output is enabled.
(option k)
Return the value set for the given option, if any.
Return the value set for the given option, if any.
(printerr & messages)
Print a message to standard error.
Print a message to standard error.
(printerrf message & fmt-args)
Print a message to standard error with formatting.
Print a message to standard error with formatting.
(report-stats results)
General result reporting logic.
General result reporting logic.
(search-roots paths)
Convert the list of paths into a collection of search roots. If the path list is empty, uses the local directory as a single root.
Convert the list of paths into a collection of search roots. If the path list is empty, uses the local directory as a single root.
(warn-legacy-config)
Warn about legacy config files, if any are observed.
Warn about legacy config files, if any are observed.
(with-options opts & body)
Evaluate the expressions in body
with the print options bound to opts
.
Evaluate the expressions in `body` with the print options bound to `opts`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close