extern crate colored;
use super::types::Favorite;
use super::util::print_favorites;
use colored::Colorize;
pub enum GetProjectRootFailed {
GitCommandNotFound,
DotGitNotFound,
}
pub fn error(message: &str) {
println!("{} {}", "error:".bold().bright_red(), message);
}
pub fn suggest(input: &str, searched: Vec<Favorite>) {
error(&format!("Key '{}' not found.\n", input));
println!("Is this what you are looking for?");
print_favorites(searched)
}