From 9fa18003375721a3c18218aa176d6b2a559bfbe1 Mon Sep 17 00:00:00 2001 From: Pyro57000 Date: Wed, 4 Jun 2025 09:55:06 -0500 Subject: [PATCH] added final success message --- pentest_tool/src/cli.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pentest_tool/src/cli.rs b/pentest_tool/src/cli.rs index c74814a..78bef2b 100644 --- a/pentest_tool/src/cli.rs +++ b/pentest_tool/src/cli.rs @@ -381,7 +381,8 @@ for help enter help or ?. for information about a specific command enter help (c let mut success_message = String::new(); project_conf_path.pop(); project_conf_path.push("projects.work"); - if project_conf_path.exists(){ + let worksapces_in_use = project_conf_path.exists(); + if worksapces_in_use{ if get_user_input("are your work projects currently loaded? (not yoru personal projects...)").to_lowercase().contains("y"){ workspace_config_path.push("projects.work"); success_message = String::from("projects.conf saved to projects.work"); @@ -420,4 +421,10 @@ for help enter help or ?. for information about a specific command enter help (c let _ = thread.join(); } } + if worksapces_in_use{ + print_success("projects saved to projects.conf, workspace project updated, threads finished. pentest_tool OUT!"); + } + else{ + print_success("projects saved to projects.conf, threads finished. pentest_tool OUT!"); + } } \ No newline at end of file