add service option

This commit is contained in:
Aaron Honeycutt 2025-07-07 19:14:11 -06:00
parent 86b30773a0
commit 24ea13bc00

View file

@ -17,6 +17,11 @@ struct Args {
/// include port number :22 /// include port number :22
#[arg(short, long)] #[arg(short, long)]
ip: String, ip: String,
/// name of service
#[arg(short, long, required = true)]
service: Vec<String>,
} }
fn main() { fn main() {
@ -38,7 +43,7 @@ fn main() {
println!("-------------------------"); println!("-------------------------");
for service in ["forgejo", "gollum", "hydra-server", "syncthing", "wastebin"] { for service in &args.service {
check_service_status(&sess, service); check_service_status(&sess, service);
} }
} }