Crate xmt

Source
Expand description

Batteries-included CLI output library for Rust.

Macros§

detail
Forwards to the XMT::detail method of the global instance.
error
Forwards to the XMT::error method of the global instance.
out
Forwards to the XMT::out method of the global instance.
print
Forwards to the XMT::print method of the global instance.
prompt
Forwards to the XMT::prompt method of the global instance.
prompt_yn
Forwards to the XMT::prompt_yn method of the global instance.
success
Forwards to the XMT::success method of the global instance.
warn
Forwards to the XMT::warn method of the global instance.

Structs§

Config
Configuration for the XMT logger.
Style
A style for a given level.
XMT
Root formatter struct.

Enums§

Color
The 8 standard colors.
Level
Different output levels supported by the library.
OutputMode
The different output modes supported by the library.

Functions§

init
Initialize the global XMT instance with the provided configuration.
init_default
Initialize the global XMT instance with the default configuration.
nest
Execute the provided closure in a nested scope within the global XMT instance.
pick
Prompt the user to select an item from a list.