Function warning

Source
pub fn warning(text: &str) -> String
Expand description

Colors text using the warning color from config.

Used for non-critical warnings and cautions that don’t prevent program execution but require user attention.

§Arguments

  • text - The warning message to be colored

§Returns

  • String - The text colored in the warning color