added clear screen function to cli

This commit is contained in:
pyro57000
2025-04-22 12:57:39 -05:00
parent 4bd67a486f
commit 0cbe33357a

View File

@@ -42,6 +42,7 @@ fn help(command: Option<String>){
"bloodhound" | "bh" => {println!("launch bloodhound in the active project's distrobox"); return;},
"parse gather contacts" | "pgc" | "parse contacts" | "pc" => {println!("parse gather contacts output"); return;},
"prune distroboxes" | "pdb" | "prune" => {println!("prune distroboxes for all projects that are not being tracked by this tool (frees up system storage)"); return;},
"clear" | "clear screen" | "cls" => {println!("clears the screen of command output"); return},
_ => ()
}
}
@@ -71,6 +72,7 @@ password spray | pass spray | pas
bloodhound | bh
parse gather contacts | pgc | parse contacts | pc
prune distroboxes | pdb | prune
clear | clear screen | cls
help | ? | -h
")
}
@@ -156,6 +158,7 @@ pub fn run_command(cmd: String,
"bloodhound" | "bh" => {let bloodhound_handle = box_controls::launch_bloodhound_gui(active_project.clone()).unwrap(); return Some(bloodhound_handle);},
"parse gather contacts" | "pgc" | "parse contacts" | "pc" => {info_controls::partse_gathercontacts(&active_project); return None},
"prune distroboxes" | "pdb" | "prune" => {let prune_thread = box_controls::clean_unused_boxes(&projects, &boxtemplate); return prune_thread},
"clear" | "clear screen" | "cls" => {clear().unwrap(); return None},
_ => {println!("unknown command."); return None;}
}
}