Function print_warning

Source
pub fn print_warning(message: &str)
Expand description

Display a warning message with consistent formatting.

Prints a warning message with a yellow warning symbol and styled text. Used for non-critical issues, deprecation notices, or situations that may require user attention but don’t prevent operation completion.

§Format

⚠ [message]

§Examples

use subx_cli::cli::ui::print_warning;

print_warning("Legacy subtitle format detected, consider upgrading");
print_warning("AI confidence below 80%, manual review recommended");
print_warning("Configuration file not found, using defaults");

§Output Examples

⚠ Legacy subtitle format detected, consider upgrading
⚠ AI confidence below 80%, manual review recommended
⚠ Configuration file not found, using defaults