#!/usr/bin/env bash

brt_trace() {
  local host="${1:-}"
  if [[ -z "$host" ]]; then
    brt_error "Usage: brt -traceroute <host>"
    exit 1
  fi

  if command -v traceroute &>/dev/null; then
    traceroute "$host"
  elif command -v tracert &>/dev/null; then
    tracert "$host"
  else
    brt_error "traceroute not found"
    exit 1
  fi
}
