add service option
This commit is contained in:
parent
86b30773a0
commit
24ea13bc00
1 changed files with 6 additions and 1 deletions
|
@ -17,6 +17,11 @@ struct Args {
|
|||
/// include port number :22
|
||||
#[arg(short, long)]
|
||||
ip: String,
|
||||
|
||||
/// name of service
|
||||
#[arg(short, long, required = true)]
|
||||
service: Vec<String>,
|
||||
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
@ -38,7 +43,7 @@ fn main() {
|
|||
|
||||
println!("-------------------------");
|
||||
|
||||
for service in ["forgejo", "gollum", "hydra-server", "syncthing", "wastebin"] {
|
||||
for service in &args.service {
|
||||
check_service_status(&sess, service);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue