todo-tree 0.5.2

A CLI tool to find and display TODO-style comments in your codebase
Documentation
1
2
3
4
5
6
7
8
9
10
11
use colored::Color;
use todo_tree_core::Priority;

pub fn priority_to_color(priority: Priority) -> Color {
    match priority {
        Priority::Critical => Color::Red,
        Priority::High => Color::Yellow,
        Priority::Medium => Color::Cyan,
        Priority::Low => Color::Green,
    }
}