-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename and reorganize alert reporting for improved clarity …
…and functionality
- Loading branch information
Showing
6 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extern crate colored; | ||
|
||
use colored::*; | ||
|
||
pub struct ReportXSSAlerts; | ||
|
||
impl ReportXSSAlerts { | ||
|
||
pub fn generated(output_path: &str) { | ||
println!("{}", "-".repeat(50)); | ||
println!("Report generated and salved in: {}", output_path.green()); | ||
} | ||
|
||
pub fn invalid_format() { | ||
let message = "Invalid file format, only TXT, CSV, HTML and JSON are supported."; | ||
|
||
println!("{}", "-".repeat(50)); | ||
println!( | ||
"{}", message.red().bold(), | ||
); | ||
} | ||
|
||
} |