Skip to content

Commit 64aa569

Browse files
authored
Update utils.rs
1 parent 70191bc commit 64aa569

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hacker/src/utils.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::io::{self, Write};
44
use std::thread;
55
use std::time::Duration;
66
use std::sync::{Arc, atomic::{AtomicBool, Ordering}};
7-
87
pub fn run_command_with_spinner(program: &str, args: Vec<&str>, message: &str) {
98
println!("{}", format!("▶ {}: {}", message, args.join(" ")).blue().bold().on_black());
109
let stop = Arc::new(AtomicBool::new(false));
@@ -46,7 +45,6 @@ pub fn run_command_with_spinner(program: &str, args: Vec<&str>, message: &str) {
4645
println!("{}", format!("└──────────────────────────").red().bold().on_black());
4746
}
4847
}
49-
5048
pub fn handle_update() {
5149
println!("{}", "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓".magenta().bold().on_black());
5250
println!("{}", "┃ Starting System Update ┃".magenta().bold().on_black());
@@ -61,7 +59,6 @@ pub fn handle_update() {
6159
println!("{}", "┃ System Update Complete ┃".green().bold().on_black());
6260
println!("{}", "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛".green().bold().on_black());
6361
}
64-
6562
pub fn handle_cybersecurity() {
6663
println!("{}", "========== Setting up Cybersecurity Container ==========".cyan().bold().on_black());
6764
run_command_with_spinner("sudo", vec!["apt", "install", "-y", "distrobox"], "Installing distrobox if not present");
@@ -105,7 +102,6 @@ pub fn handle_cybersecurity() {
105102
}
106103
println!("{}", "========== Cybersecurity Setup Complete ==========".green().bold().on_black());
107104
}
108-
109105
pub fn handle_gaming() {
110106
println!("{}", "========== Installing Gaming Tools ==========".cyan().bold().on_black());
111107
run_command_with_spinner("flatpak", vec!["remote-add", "--if-not-exists", "flathub", "https://dl.flathub.org/repo/flathub.flatpakrepo"], "Adding flathub repo");

0 commit comments

Comments
 (0)