pub mod dns;
pub mod git;
pub mod ports;
pub mod tcpdump;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum ToolsError {
#[error("connection not found: {0}")]
ConnectionNotFound(String),
#[error("connection is not SSH: {0}")]
NotSshConnection(String),
#[error("remote command failed (exit {exit:?}): {message}")]
RemoteCommand { exit: Option<i32>, message: String },
#[error("ssh exec failed: {0}")]
SshExec(String),
#[error("parse error: {0}")]
Parse(String),
#[error("capture not found: {0}")]
CaptureNotFound(u64),
#[error("io: {0}")]
Io(#[from] std::io::Error),
}
pub use dns::{DnsAnswer, DnsQuery, dns_resolve_local, dns_resolve_remote};
pub use git::{GitStatus, git_status};
pub use ports::{ListeningPort, listening_ports};
pub use tcpdump::{TcpdumpEvent, TcpdumpRegistry};