update
This commit is contained in:
parent
0a48113d38
commit
4b151dd10d
1 changed files with 8 additions and 2 deletions
|
@ -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,9 +72,14 @@ pub fn show_rg(regex: &str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn show_todos() {
|
pub fn show_todos() {
|
||||||
println!("{} todos found.", todos_amount());
|
let amount = todos_amount();
|
||||||
|
if amount == 0 {
|
||||||
|
println!("{}", "✨ No TODOs 🍃".paint(Color::Green).bold());
|
||||||
|
} else {
|
||||||
|
println!("{} TODOs found.", amount);
|
||||||
show_rg(TODO_REGEX);
|
show_rg(TODO_REGEX);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = args::get_args();
|
let args = args::get_args();
|
||||||
|
|
Loading…
Add table
Reference in a new issue