This commit is contained in:
Alexandr Bogomyakov
2023-07-03 15:52:55 +03:00
parent e661349034
commit 502d206dc7
3 changed files with 22 additions and 23 deletions

20
Cargo.lock generated
View File

@ -1043,17 +1043,17 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78"
[[package]]
name = "rexec"
version = "1.0.1"
version = "1.0.2"
dependencies = [
"brace-expand",
"clap 4.3.4",
"colored",
"dialoguer",
"dns-lookup",
"env_logger",
"itertools",
"lazy-st",
"log",
"brace-expand",
"clap 4.3.4",
"colored",
"dialoguer",
"dns-lookup",
"env_logger",
"itertools",
"lazy-st",
"log",
"massh",
"regex",
"whoami",

View File

@ -1,6 +1,6 @@
[package]
name = "rexec"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
description = "Parallel SSH executor"
repository = "https://github.com/house-of-vanity/rexec"

View File

@ -1,4 +1,13 @@
use brace_expand::brace_expand;
#[macro_use]
extern crate log;
use std::collections::HashMap;
use std::fs::read_to_string;
use std::hash::Hash;
use std::net::IpAddr;
use std::process;
use clap::Parser;
use colored::*;
use dialoguer::Confirm;
use dns_lookup::lookup_host;
@ -7,17 +16,7 @@ use itertools::Itertools;
use log::{error, info};
use massh::{MasshClient, MasshConfig, MasshHostConfig, SshAuth};
use regex::Regex;
use std::collections::HashMap;
use std::fs::read_to_string;
use std::hash::Hash;
use std::net::IpAddr;
use std::process;
#[macro_use]
extern crate log;
use clap::Parser;
// Define args
#[derive(Parser, Debug)]
@ -29,7 +28,7 @@ struct Args {
#[arg(short, long, help = "Use known_hosts to build servers list")]
known_hosts: bool,
#[arg(short, long, help = "Expression to build server list")]
#[arg(short, long, help = "Expression to build server list. List and range expansion available. Example: 'web-[1:12]-io-{prod,dev}'")]
expression: String,
#[arg(short, long, help = "Command to execute on servers")]