#!/bin/bash
# Exit immediately on error, treat unset variables as errors, propagate pipe failures.
set -euo pipefail
# Load shared log/warn/skip helpers from the installer library.
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"

log "Installing networking CLI tools..."
# httpie: human-friendly HTTP client; ipcalc: subnet calculator;
# mitmproxy: interactive TLS-capable proxy for traffic inspection;
# mtr: combines ping + traceroute in a live display; net-tools: ifconfig/netstat;
# nethogs: per-process bandwidth monitor; nmap: port scanner;
# tcpdump: packet capture; traceroute: hop-by-hop path tracing.
sudo pacman -S --noconfirm --needed \
    httpie ipcalc mitmproxy mtr net-tools nethogs \
    nmap tcpdump traceroute
log "Networking CLI tools installed."
