Skip to content

Commit

Permalink
refactor: update all alerts to include bold datetime formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Jul 8, 2024
1 parent 0fc5ad8 commit c84413d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/ui/checksum_alerts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl ChecksumAlerts {
UI::section_header("checksum");

println!(
"{} -> Hashes file created with successfully ({})",
"{} Hashes file created with successfully ({})",
current_datetime.blue().bold(),
file.cyan()
);
Expand All @@ -35,7 +35,7 @@ impl ChecksumAlerts {
let current_datetime = General::date_time();

println!(
"{} -> The hash {} of {} is match. {}",
"{} The hash {} of {} is match. {}",
current_datetime.green().bold(),
hash.yellow(),
filename.blue(),
Expand All @@ -51,7 +51,7 @@ impl ChecksumAlerts {
let current_datetime = General::date_time();

println!(
"{} -> The hash {} of {} is not match. {}",
"{} The hash {} of {} is not match. {}",
current_datetime.red().bold(),
hash.yellow(),
filename.blue(),
Expand All @@ -66,7 +66,7 @@ impl ChecksumAlerts {
if local_total_lines != remote_total_lines {
let current_datetime = General::date_time();

println!("{} -> The number of lines in the files is different (Lines: {} (local) of {} (referencies)). {}",
println!("{} The number of lines in the files is different (Lines: {} (local) of {} (referencies)). {}",
current_datetime.red().bold(),
local_total_lines,
remote_total_lines,
Expand All @@ -78,7 +78,7 @@ impl ChecksumAlerts {
pub fn lines_unmatch_file_deleted(filename: &str) {
let current_datetime = General::date_time();

println!("{} -> The file {} was deleted, because is hashes unmatched. {}",
println!("{} The file {} was deleted, because is hashes unmatched. {}",
current_datetime.red().bold(),
filename.blue(),
Emojis::FORBIDDEN
Expand Down
2 changes: 1 addition & 1 deletion src/ui/macros_alerts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl MacrosAlerts {
let url = line.replace(" !ignore", "");

println!(
"{} -> The url {} was ignored",
"{} The url {} was ignored",
current_datetime.green().bold(),
url.blue()
);
Expand Down
6 changes: 3 additions & 3 deletions src/ui/success_alerts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl SuccessAlerts {

pub fn env() {
let current_datetime = General::date_time();
println!("{} -> Downloaded env file", current_datetime.blue().bold());
println!("{} Downloaded env file", current_datetime.blue().bold());
}

pub fn download(file: &str, url: &str, password: bool, hash: &str) {
Expand All @@ -28,7 +28,7 @@ impl SuccessAlerts {
}

println!(
"{} -> Downloaded: {} ({} • {}) {}",
"{} Downloaded: {} ({} • {}) {}",
current_datetime.green().bold(),
file.blue(),
domain.cyan(),
Expand All @@ -42,7 +42,7 @@ impl SuccessAlerts {
let current_datetime = General::date_time();

println!(
"{} -> Downloaded and generated pdf: {} ({} • {})",
"{} Downloaded and generated pdf: {} ({} • {})",
current_datetime.green().bold(),
file.blue(),
domain.cyan(),
Expand Down

0 comments on commit c84413d

Please sign in to comment.