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
Errorbadge followed bytext. - banner_
invalid_ input - A red
Invalid inputbadge followed bytextin red. - banner_
suggestion - A grey
Suggestionbadge followed bytext. - banner_
warning - A grey
Warningbadge followed bytext. - err_
line - Prefixes
textwith a bold redError; used for the final error the CLI prints. - error
- Red, for errors.
- heading
- Bright cyan, for section headings.
- info
- Prefixes
textwith a bold blueInfo:. - label
- Bright blue, for field labels.
- mask_
url - Hides the secrets in a connection URL: the password of
user:password@and the value ofauthToken,password,tokenand 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 textin yellow, for check results.- success
- Bright green, for success messages.
- warn_
line - Formats
[Warning] textwith a yellow tag. - warning
- Yellow, for warnings.