mirror of
https://github.com/house-of-vanity/rexec.git
synced 2025-07-07 00:54:06 +00:00
Cleanup
This commit is contained in:
20
Cargo.lock
generated
20
Cargo.lock
generated
@ -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",
|
||||
|
@ -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"
|
||||
|
23
src/main.rs
23
src/main.rs
@ -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")]
|
||||
|
Reference in New Issue
Block a user