Skip to content

milpa

milpa help docs milpa util log

The log util contains shell functions related to output of informational messages. This utility is loaded by default.

If TERM is not set, then it'll default to xterm-color.

Functions

@milpa.fmt

@milpa.fmt CODE MESSAGE

Returns MESSAGE formatted with CODE and does not print a new line. Code can be any of bold, warning, error and inverted.

@milpa.log

@milpa.log LEVEL [MESSAGE]

Prints MESSAGE with a log prefix, unless --silent is specified or LEVEL is error. Level may be one of: