Skip to main content

Crate moon_common

Crate moon_common 

Source

Modules§

color
path
theme

Macros§

cacheable
Derive Serialize/Deserialize with camelCase field renaming. Use for structs that are persisted to cache or serialized to JSON.
cacheable_enum
Derive Serialize/Deserialize with kebab-case variant renaming. Use for enums that are persisted to cache or serialized to JSON.

Structs§

Id
A compact string identifier for use within records, key lookups, and more. Supports unicode alphanumeric characters, forward slash /, period ., underscore _, and dash -. A leading @ is supported to support npm package names.
IdError
ID errors.

Enums§

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

Constants§

BLOCKING_THREAD_COUNT

Traits§

IdExt
Stylize

Functions§

apply_style_tags
Apply styles to a string by replacing style specific tags. For example: <file>starbase.json</file>
encode_style_tags
Encode a string so that style tags are not replaced.
is_ci
is_ci_env
is_daemon_env
is_devbox
is_docker
is_formatted_output
is_headless
is_local
is_remote
is_ssh
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.