Skip to main content

Module output

Module output 

Source
Expand description

Terminal styling helpers, so every command formats output the same way (in the style of drizzle-kit).

Each helper returns the text wrapped in ANSI color codes (via the colored crate, which honors NO_COLOR).

Functionsยง

banner_error
A red Error badge followed by text.
banner_invalid_input
A red Invalid input badge followed by text in red.
banner_suggestion
A grey Suggestion badge followed by text.
banner_warning
A grey Warning badge followed by text.
err_line
Prefixes text with a bold red Error; used for the final error the CLI prints.
error
Red, for errors.
heading
Bright cyan, for section headings.
info
Prefixes text with a bold blue Info:.
label
Bright blue, for field labels.
mask_url
Hides the secrets in a connection URL: the password of user:password@ and the value of authToken, password, token and similar query parameters.
muted
Dim (bright black), for secondary text.
status_error
Red ERROR, for check results.
status_ok
Green OK, for check results.
status_warning
text in yellow, for check results.
success
Bright green, for success messages.
warn_line
Formats [Warning] text with a yellow tag.
warning
Yellow, for warnings.