This commit is contained in:
JMARyA 2025-01-22 17:52:03 +01:00
parent 0a48113d38
commit 4b151dd10d
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -2,6 +2,7 @@ use git::{bootstrap, commit, create_new_branch, delete_branch, fetch, git_add, p
use gitmoji::{CommitMessage, select_gitmoji}; use gitmoji::{CommitMessage, select_gitmoji};
use std::io::Read; use std::io::Read;
use subprocess::{Exec, Redirection}; use subprocess::{Exec, Redirection};
use yansi::{Color, Paint};
mod args; mod args;
mod git; mod git;
@ -71,8 +72,13 @@ pub fn show_rg(regex: &str) {
} }
pub fn show_todos() { pub fn show_todos() {
println!("{} todos found.", todos_amount()); let amount = todos_amount();
show_rg(TODO_REGEX); if amount == 0 {
println!("{}", "✨ No TODOs 🍃".paint(Color::Green).bold());
} else {
println!("{} TODOs found.", amount);
show_rg(TODO_REGEX);
}
} }
fn main() { fn main() {