Crate moon_common

Source

Modules§

color
consts
path
theme

Macros§

cacheable
cacheable_enum

Structs§

Id
IdError

Enums§

LightColor
ANSI colors for a light theme.
Style
Types of colors based on state and usage.

Statics§

ID_CHARS
ID_CLEAN
ID_PATTERN

Traits§

Stylize

Functions§

apply_style_tags
Apply styles to a string by replacing style specific tags. For example: <file>starbase.json</file>
is_ci
is_docker
is_formatted_output
is_test_env
is_wsl
parse_style_tags
Parses a string with HTML-like tags into a list of styled pieces. For example: <file>starbase.json</file>
parse_tags
Parses a string with HTML-like tags into a list of tagged pieces. For example: <file>starbase.json</file>
remove_style_tags
Remove style and tag specific markup from a string.

Type Aliases§

DarkColor
ANSI colors for a dark theme.