A helper function that applies ANSI color and font styles (bold/italic) to a
text string. This is designed to be used inside cli::cli_progress_step()
to style the status message while preserving the spinner's functionality.
Value
A character string containing the ANSI-styled text, ready to be passed to CLI printing functions.
Examples
if (FALSE) { # \dontrun{
# Standard usage inside a progress step
cli::cli_progress_step(step_fmt("Loading data...", color = "blue"))
# Bold and Red for critical steps
cli::cli_progress_step(step_fmt("Critical Check", color = "red", face = "b"))
# Italic Grey (Subtle)
cli::cli_progress_step(step_fmt("Calculating metrics", face = "i"))
} # }
