From 0cbe33357a74c73ca213fc431b5ecf86ea3a7aae Mon Sep 17 00:00:00 2001 From: pyro57000 Date: Tue, 22 Apr 2025 12:57:39 -0500 Subject: [PATCH] added clear screen function to cli --- pentest_tool/src/cli.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pentest_tool/src/cli.rs b/pentest_tool/src/cli.rs index 46ecdc2..0091668 100644 --- a/pentest_tool/src/cli.rs +++ b/pentest_tool/src/cli.rs @@ -42,6 +42,7 @@ fn help(command: Option){ "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;} } }