update
This commit is contained in:
parent
0a48113d38
commit
4b151dd10d
1 changed files with 8 additions and 2 deletions
10
src/main.rs
10
src/main.rs
|
@ -2,6 +2,7 @@ use git::{bootstrap, commit, create_new_branch, delete_branch, fetch, git_add, p
|
|||
use gitmoji::{CommitMessage, select_gitmoji};
|
||||
use std::io::Read;
|
||||
use subprocess::{Exec, Redirection};
|
||||
use yansi::{Color, Paint};
|
||||
|
||||
mod args;
|
||||
mod git;
|
||||
|
@ -71,8 +72,13 @@ pub fn show_rg(regex: &str) {
|
|||
}
|
||||
|
||||
pub fn show_todos() {
|
||||
println!("{} todos found.", todos_amount());
|
||||
show_rg(TODO_REGEX);
|
||||
let amount = todos_amount();
|
||||
if amount == 0 {
|
||||
println!("{}", "✨ No TODOs 🍃".paint(Color::Green).bold());
|
||||
} else {
|
||||
println!("{} TODOs found.", amount);
|
||||
show_rg(TODO_REGEX);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue